-
Notifications
You must be signed in to change notification settings - Fork 145
Feature: add abacus toolchain #2857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Toolchain scripts for quickly and properly compile and install dependencies of ABACUS including: - gnu-toolchain - - `gcc` (always in system) - - `openblas` - - `openmpi` or `mpich` - - `scalapack`, `fftw`, `elpa` , `libxc` - - `cereal`, `libnpy`, `libtorch` - intel-toolchain (likely) Version 2023.1 inspired by cp2k-toolchain. Still need more test and improvement, but can have good usage. The toolchain directory is designed to be in the path of ABACUS itself.
There are too much new files in this PR. Please check your changes. |
too much file mainly in libs/cereal and libs/libnpy, make them easier so less is more
@dyzheng Got it, much new file mainly in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@QuantumMisaka
Thanks for your contribution! I believe these script will help users a lot.
However, please remove the release packages under libs. Doing so is an action of redistribution and integration of those software packages. This is strongly not recommended because it might introduce incompatibility on licenses. (And you did not include the license files of those packages.)
It is OK to download them in your script. If you think integrating them in ABACUS repo is necessary, please use git submodule.
Thanks!
@QuantumMisaka And, if you wish, you can add docs or links to the toolchain under corresponding parts of |
@caic99 I also want to remove the libraries in Also, the Thanks ! |
In principle it is the user's responsibiliy guaranteeing the internet connection. However, considering the actual situations, maybe you can provide some mirror sites of GitHub (e.g. fastgit) in place of the fixed base domain of github.com . Using gitee mirroring service is a more secure way.
Please choose a good place for it to maintain the structure. Maybe under quick_start folder, and add an introduction for it at easy_install.md? What do you think? |
- use toolchain scripts to install `cereal` and `libnpy` by `wget` from github.com, remove `libs` directory at the same time - fix some bug in intel-toolchain - update README - update executable permission
update readme
Co-authored-by: Chun Cai <amoycaic@gmail.com>
- update README - update easy_install.md
add target for acml toolchain
update a quick way to use intel-mpich toolchain installation which has the best speed in test on intel-8358 HPC server
default gnu toolchain change to openmpi ,which is more efficient in most of the test
- update env setting after installation in `setup` - update build method of intel-toolchain and intel-mpich toolchain - minor bug fixed
use a more normal way to introduce cereal & libnpy
@caic99 A problem in my try for introducing In file included from /lustre/home/2201110432/apps/abacus/icc-mkl/deps/LibRI/include/RI/global/Tensor.h(8),
from /lustre/home/2201110432/apps/abacus/icc-mkl/source/module_hamilt_lcao/hamilt_lcaodft/LCAO_matrix.h(13),
from /lustre/home/2201110432/apps/abacus/icc-mkl/source/module_io/restart.h(6),
from /lustre/home/2201110432/apps/abacus/icc-mkl/source/module_hamilt_pw/hamilt_pwdft/global.h(8),
from /lustre/home/2201110432/apps/abacus/icc-mkl/source/module_cell/klist.cpp(1):
/lustre/home/2201110432/apps/abacus/icc-mkl/deps/LibRI/include/RI/global/Shared_Vector.h(8): catastrophic error: cannot open source file "cereal/cereal.hpp"
#include <cereal/cereal.hpp>
compilation aborted for /lustre/home/2201110432/apps/abacus/icc-mkl/source/module_cell/klist.cpp (code 4)
gmake[2]: *** [source/module_cell/CMakeFiles/cell.dir/build.make:244: source/module_cell/CMakeFiles/cell.dir/klist.cpp.o] Error 4 What's the best way for |
Hi @QuantumMisaka , |
@QuantumMisaka Update: Please check in your terminal if |
|
Libtorch 2.0.1 will lead to lots of warning in abacus build process
Toolchain scripts for quickly and properly compile and install dependencies of ABACUS including:
gcc
(always in system)openblas
openmpi
ormpich
scalapack
,fftw
,elpa
,libxc
cereal
,libnpy
,libtorch
Version 2023.1 inspired by cp2k-toolchain.
Still need more test and improvement, but can have good usage.
The toolchain directory is designed to be in the path of ABACUS itself.