Skip to content

Commit

Permalink
Update sync_tests.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chhwang authored Dec 20, 2023
1 parent 3f71cae commit 374a150
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/sync_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class DeviceSyncerTestFixture : public ::testing::Test {
uint64_t memrealtime_freq_mhz() {
cudaDeviceProp deviceProp{};
MSCCLPP_CUDATHROW(cudaGetDeviceProperties(&deviceProp, 0));
#if defined(__HIP_PLATFORM_AMD__) && (__HIP_PLATFORM_AMD__ == 1)
switch (deviceProp.gcnArch) {
case 900: return 27;
case 906: return 25;
Expand All @@ -107,6 +108,7 @@ class DeviceSyncerTestFixture : public ::testing::Test {
assert(false && "clock data unavailable");
return 0;
}
#endif
}

double gpu_cycles_to_us(uint64_t cycles) {
Expand Down

0 comments on commit 374a150

Please sign in to comment.