Move inline assembly into arch defines blocks

Cette révision appartient à :
Brandon Potter
2024-07-30 12:56:32 -05:00
Parent ca36cc249e
révision 73303ca2d2
3 fichiers modifiés avec 34 ajouts et 6 suppressions
+2
Voir le fichier
@@ -42,10 +42,12 @@ 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;
}