Skip to content

Commit

Permalink
Attempt to fix device id test with OpenMPTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Jan 31, 2024
1 parent 69fc8f8 commit 729940c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unit_test/UnitTest_DeviceAndThreads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int get_device_id() {
#elif defined(KOKKOS_ENABLE_HIP)
KOKKOS_IMPL_HIP_SAFE_CALL(hipGetDevice(&device_id));
#elif defined(KOKKOS_ENABLE_OPENMPTARGET)
device_id = omp_get_device_num();
device_id = omp_get_default_device();
#elif defined(KOKKOS_ENABLE_OPENACC)
device_id = acc_get_device_num(acc_get_device_type());
#elif defined(KOKKOS_ENABLE_SYCL)
Expand Down

0 comments on commit 729940c

Please sign in to comment.