forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add runtime function to query the number of devices and make device I…
…D consistent with `KOKKOS_VISIBLE_DEVICES` (kokkos#6713) * Make Kokkos::device_id consistent with KOKKOS_VISIBLE_DEVICES * Mask visible devices in CUDA/HIP::print_config * fixup! Make Kokkos::device_id consistent with KOKKOS_VISIBLE_DEVICES * Add Kokkos::num_devices() -> int * Let num_devices() return -1 when no device backend is enabled * Update device and threads unit test * Skip num_devices and device_id tests if KOKKOS_VISIBLE_DEVICES env var is defined * Fix device_id test with SYCL * Fix HIP test GetDevice[Count] * Enable device initialization testing for OpenMPTarget As far as I understand it was resolved in kokkos#5492 * Improve error message when the device id cannot be determined
- Loading branch information
Showing
8 changed files
with
76 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters