forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Labels
BugsBugs that only solvable with sufficient knowledge of DFTBugs that only solvable with sufficient knowledge of DFTGPU & DCU & HPCGPU and DCU and HPC related any issuesGPU and DCU and HPC related any issues
Description
Describe the bug
When the device is CPU, and CUDA is enabled but no GPU is available, registering memory seems to be impossible. This may happen on clusters where there are both CPU and GPU nodes but we only want to compile once.
We should not only detect the marco but also the device parameter in order to avoid running any GPU code on CPU device.
Expected behavior
No response
To Reproduce
No response
Environment
No response
Additional Context
No response
Task list for Issue attackers (only for developers)
- Verify the issue is not a duplicate.
- Describe the bug.
- Steps to reproduce.
- Expected behavior.
- Error message.
- Environment details.
- Additional context.
- Assign a priority level (low, medium, high, urgent).
- Assign the issue to a team member.
- Label the issue with relevant tags.
- Identify possible related issues.
- Create a unit test or automated test to reproduce the bug (if applicable).
- Fix the bug.
- Test the fix.
- Update documentation (if necessary).
- Close the issue and inform the reporter (if applicable).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugsBugs that only solvable with sufficient knowledge of DFTBugs that only solvable with sufficient knowledge of DFTGPU & DCU & HPCGPU and DCU and HPC related any issuesGPU and DCU and HPC related any issues