forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend 'hip_driver_check_page_migration' (kokkos#6364)
* Teach 'hip_driver_check_page_migration' about hipDeviceAttributePageableMemoryAccess This attribute returns true if either HSA_XNACK=1, or amdgpu.noretry=0, meaning we no longer have to guess whether pagable HMM is enabled, e.g.: $ ./a.out Pagable? 0 $ HSA_XNACK=1 ./a.out Pagable? 1 $ cat /proc/cmdline <... amdgpu.noretry=0 ...> $ ./a.out Pagable? 1 $ HSA_XNACK=1 ./a.out Pagable? 1 In addition, refactor hip_driver_check_page_migration to be part of HIPManagedSpace, such that we can automatically skip the defaultdevicetype::shared_space if XNACK is not enabled. This helps avoid false positive failures on CI runs on an MI-210/250/250X. Change-Id: Iae6a7e22ce0471d9a6fe0813a96423eba86c5641 * apply formatting Change-Id: I91473b1d5e9a5293bbde9fa03863aacd7a261b75 * rename to impl Change-Id: I2b3f3a43e2f929d597d7a86da18782d1547a3533 --------- Co-authored-by: Nicholas Curtis <nicurtis@amd.com>
- Loading branch information
Nick Curtis
and
Nicholas Curtis
committed
Aug 17, 2023
1 parent
04d5c55
commit ab10d2b
Showing
3 changed files
with
21 additions
and
12 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