Move inline asm into separate file

Este commit está contenido en:
Brandon Potter
2024-07-30 14:53:19 -05:00
padre 73303ca2d2
commit 862ef5713f
Se han modificado 4 ficheros con 237 adiciones y 142 borrados
-11
Ver fichero
@@ -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{};