Skip to content

Commit 7f6525b

Browse files
authored
Merge pull request #2099 from glotzerlab/fix-unified-memory-attr
Ensure that devices have full unified memory capabilities.
2 parents c83342c + c647f7f commit 7f6525b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ Change Log
44
5.x
55
---
66

7+
5.3.1 (not yet released)
8+
^^^^^^^^^^^^^^^^^^^^^^^^
9+
710
5.3.0 (2025-06-26)
811
^^^^^^^^^^^^^^^^^^
912

13+
*Fixed*
14+
15+
* Ensure that GPU devices have full unified memory capabilities
16+
(`#2099 <https://github.com/glotzerlab/hoomd-blue/pull/2099>`__).
17+
1018
*Added*
1119

1220
* The Zetterling pair potential: ``hoomd.hpmc.pair.Zetterling``

hoomd/ExecutionConfiguration.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,9 @@ void ExecutionConfiguration::scanGPUs()
388388
// exclude a GPU when it doesn't support mapped memory
389389
#ifdef __HIP_PLATFORM_NVCC__
390390
int supports_managed_memory = 0;
391-
cudaError_t cuda_error
392-
= cudaDeviceGetAttribute(&supports_managed_memory, cudaDevAttrManagedMemory, dev);
391+
cudaError_t cuda_error = cudaDeviceGetAttribute(&supports_managed_memory,
392+
cudaDevAttrPageableMemoryAccess,
393+
dev);
393394
if (cuda_error != cudaSuccess)
394395
{
395396
s_gpu_scan_messages.push_back("Failed to get device attribute: "

0 commit comments

Comments
 (0)