Replies: 3 comments
-
Hi @Flashbac09 , abacus-develop/conda/meta.yaml Lines 6 to 9 in 47afeb1 Ref: https://abacus.deepmodeling.com/en/latest/quick_start/easy_install.html#install-by-conda Regarding compiling the GPU version of ABACUS with conda-build, we have not tried it before. IMHO you can try adding a cudatoolkit in the requirements and build ABACUS with GPU support. Please let me know if you have any further questions! |
Beta Was this translation helpful? Give feedback.
-
Currently, I've figured out a way to modify the meta data to build the GPU version of ABACUS, which can utilize the GPU and accelerate performance. However, it lacks complete test and requires long time to build & create environment. Therefore, my issue is done here for running the whole process. Further development needs more rounded analysis for conda employment, and it's my pleasure if developers can benefit from this document then. |
Beta Was this translation helpful? Give feedback.
-
@Flashbac09 Thanks for your effort! Now the conda package with GPU support of ABACUS is available by conda-forge: https://anaconda.org/conda-forge/abacus |
Beta Was this translation helpful? Give feedback.
-
Details
I 've been able to install conda-package abacus 3.1.3 (https://anaconda.org/deepmodeling/abacus) to create environment and
test ABACUS on the machine with NVIDIA GPU.
While a beginner on conda & conda-build, I tried to build my own conda-package of abacus with the change of compiler
setting of USE_CUDA=ON. However, conda-build failed to solve environment setting, and the building process both failed on
the circumstances of USE_CUDA=ON and USE_CUDA=OFF.
I sincerely ask for certain guidance on how to build abacus package with given meta.yaml (and building script in it). Most
importantly, how should we compile the GPU version of ABACUS with conda-build.
Case 1(trying to build a default version): meta.yaml was given in abacus-develop/conda.
Case 2(meta.yaml changed):
cmake -B conda_build ${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release -DENABLE_DEEPKS=1 -DENABLE_LIBXC=1 -DUSE_CUDA=1
Beta Was this translation helpful? Give feedback.
All reactions