summaryrefslogtreecommitdiff
path: root/dev-util/roctracer/files/roctracer-10.1.0-test-skip-npu.patch
blob: f4d1ba6914d373e1c78b354900e42e0f9218ef30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Only use CPU and GPU agents in the HSA copy test

AIE (NPU) agents are listed by HSA on Strix systems with amdxdna;
hsa_amd_agents_allow_access fails for them.
--- a/test/hsa/copy.cpp
+++ b/test/hsa/copy.cpp
@@ -154,6 +154,7 @@ bool DeviceDiscovery() {
         hsa_device_type_t type;
         err = hsa_agent_get_info(agent, HSA_AGENT_INFO_DEVICE, &type);
         CHECK(err);
+        if (type != HSA_DEVICE_TYPE_CPU && type != HSA_DEVICE_TYPE_GPU) return HSA_STATUS_SUCCESS;
 
         err = hsa_amd_agent_iterate_memory_pools(
             agent,