Move inline asm into separate file

[ROCm/rocshmem commit: 862ef5713f]
This commit is contained in:
Brandon Potter
2024-07-30 14:53:19 -05:00
orang tua 61140c9a10
melakukan 21d8301c83
4 mengubah file dengan 237 tambahan dan 142 penghapusan
-11
Melihat File
@@ -40,17 +40,6 @@ typedef struct device_agent {
std::vector<device_agent_t> gpu_agents;
std::vector<device_agent_t> cpu_agents;
__device__ uint64_t __read_clock() {
uint64_t clock{};
#if __gfx90a__
asm volatile(
"s_memrealtime %0\n"
"s_waitcnt lgkmcnt(0)\n"
: "=s"(clock));
#endif
return clock;
}
hsa_status_t rocm_hsa_amd_memory_pool_callback(
hsa_amd_memory_pool_t memory_pool, void* data) {
hsa_amd_memory_pool_global_flag_t pool_flag{};