-
Notifications
You must be signed in to change notification settings - Fork 526
VITIS-15769 Deprecate legacy image management APIs in favor of xrt::… #9651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
1b6570d
8c3497d
c129545
5c83d5f
bb2e932
7931d40
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,10 +82,13 @@ bool run_pl_controller_aie1(xrt::device device, xrt::uuid uuid, boost::property_ | |
|
|
||
| unsigned int mem_size_bytes = 0; | ||
|
|
||
| #pragma GCC diagnostic push | ||
| #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
| auto sender_receiver_k1 = | ||
| xrt::kernel(device, uuid, "sender_receiver:{sender_receiver_1}"); | ||
| auto controller_k1 = | ||
| xrt::kernel(device, uuid, "pl_controller_kernel:{controller_1}"); | ||
| #pragma GCC diagnostic pop | ||
|
||
|
|
||
| // output memory | ||
| mem_size_bytes = num_sample * num_iter * sizeof(uint32_t); | ||
|
|
@@ -170,8 +173,11 @@ bool run_pl_controller_aie2(xrt::device device, xrt::uuid uuid, boost::property_ | |
| uint32_t mem_size_bytes = 0; | ||
|
|
||
| // XRT auto get group_id | ||
| #pragma GCC diagnostic push | ||
| #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
| auto sender_receiver_k1 = xrt::kernel(device, uuid, "sender_receiver:{sender_receiver_1}"); | ||
| auto controller_k1 = xrt::kernel(device, uuid, "pl_controller_top:{controller_1}"); | ||
| #pragma GCC diagnostic pop | ||
|
|
||
| // output memory | ||
| mem_size_bytes = num_sample * num_iter * sizeof(uint32_t); | ||
|
|
@@ -251,7 +257,10 @@ TestAiePl::runTest(const std::shared_ptr<xrt_core::device>& dev, boost::property | |
| } | ||
| ptree.put("xclbin_directory", std::filesystem::path(test_path)); | ||
|
|
||
| #pragma GCC diagnostic push | ||
| #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
| const auto uuid = device.load_xclbin(binaryFile.string()); | ||
| #pragma GCC diagnostic pop | ||
|
|
||
| boost::property_tree::ptree aie_meta; | ||
| auto metadata_pair = dev->get_axlf_section(AIE_METADATA); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,12 +98,15 @@ TestHostMemBandwidthKernel::runTest(const std::shared_ptr<xrt_core::device>& dev | |
|
|
||
| std::string krnl_name = "bandwidth"; | ||
| xrt::uuid xclbin_uuid; | ||
| #pragma GCC diagnostic push | ||
| #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
| if (retVal == EOPNOTSUPP) { | ||
| krnl_name = "slavebridge"; | ||
| xclbin_uuid = device.load_xclbin(old_binary_file.string()); | ||
| } else { | ||
| xclbin_uuid = device.load_xclbin(b_file); | ||
| } | ||
| #pragma GCC diagnostic pop | ||
|
||
| std::vector<xrt::kernel> krnls(num_kernel); | ||
|
|
||
| for (int i = 0; i < num_kernel; i++) { | ||
|
|
@@ -119,7 +122,10 @@ TestHostMemBandwidthKernel::runTest(const std::shared_ptr<xrt_core::device>& dev | |
| // compute unit. | ||
| // For such case, this kernel object can only access the specific | ||
| // Compute unit | ||
| #pragma GCC diagnostic push | ||
| #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
| krnls[i] = xrt::kernel(device, xclbin_uuid, krnl_name_full.c_str()); | ||
| #pragma GCC diagnostic pop | ||
| } | ||
|
|
||
| double max_throughput = 0; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,10 @@ | |
| # pragma warning( disable : 4267 4996 4244 4245 ) | ||
| #endif | ||
|
|
||
| #if defined(__GNUC__) | ||
| # pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
| #endif | ||
|
||
|
|
||
| namespace { | ||
|
|
||
| static bool | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my experience, you need to provide the API to use and not leave the user guessing.