dbcsr icon indicating copy to clipboard operation
dbcsr copied to clipboard

ROCm Compile Time Reduction

Open Spaarsh opened this issue 2 months ago • 2 comments

As per https://github.com/cp2k/dbcsr/discussions/933 discussion, this PR attempts to reduce compile time for rocm-enabled dbcsr builds with multiple target architectures.

Spaarsh avatar Oct 18 '25 17:10 Spaarsh

Currently, cmake successfully but make results in a failure with these errors:

In file included from /dbcsr/src/acc/cuda_hip/acc_mem.cpp:13:
/dbcsr/src/acc/cuda_hip/acc_mem.cpp: In function 'int c_dbcsr_acc_host_mem_allocate(void**, size_t, void*)':
/dbcsr/src/acc/cuda_hip/../hip/acc_hip.h:23:16: error: 'hipHostAllocDefault' was not declared in this scope; did you mean 'hipHostMallocDefault'?
   23 | #define ACC(x) hip##x
      |                ^~~
/dbcsr/src/acc/cuda_hip/acc_mem.cpp:49:23: note: in expansion of macro 'ACC'
   49 |   unsigned int flag = ACC(HostAllocDefault);
      |                       ^~~

Spaarsh avatar Oct 18 '25 17:10 Spaarsh

Thanks for your contribution. However, given the current problems, I will keep this PR for a new release of DBCSR.

alazzaro avatar Dec 15 '25 09:12 alazzaro