-
Notifications
You must be signed in to change notification settings - Fork 197
WIP: Add metatensor #4970
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
base: python
Are you sure you want to change the base?
WIP: Add metatensor #4970
Conversation
|
Progress:
|
|
Notes on building: Torhcwget "https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.4.0%2Bcu121.zip"
unzip libtorch-cxx11-abi-shared-with-deps-2.4.0+cu121.zip Note that this is libtorch, not torch propper. Intsall rustI used the rustup script from the rust installatoin page, which installs to ~..cargo. Source rust config . ~/.cargo/envmetatensorgit clone from lab-cosmo/metatensor cd metatensor/metatensor-torch |
|
Forgot two points:
|
29ba46b to
d0390b5
Compare
|
(Also do not forget to append |
|
hello there, we're putting the finishing touches on a paper on the "metatensor ecosystem" and we would very much love to mention also the integration in ESPRESSO. is there any way we can help to get this merged? |
|
I just had a very nice offline discussion with @jhossbach and @RudolfWeeber and we try to get this going again. |
|
Current setup that builds (on my machine): export PATH=/usr/local/cuda-12.4/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:$LD_LIBRARY_PATH
export CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.4
rm -rf build
mkdir build
cd build
source ../.venv/bin/activate
echo $CMAKE_PREFIX_PATH
TORCH_PREFIX=$(python -c "import torch; print(torch.utils.cmake_prefix_path)")
MTS_PREFIX=$(python -c "import metatensor; print(metatensor.utils.cmake_prefix_path)")
MTS_TORCH_PREFIX=$(python -c "import metatensor.torch; print(metatensor.torch.utils.cmake_prefix_path)")
MTA_TORCH_PREFIX=$(python -c "import metatomic.torch; print(metatomic.torch.utils.cmake_prefix_path)")
CMAKE_PREFIX_PATH="$TORCH_PREFIX;$MTS_PREFIX;$MTS_TORCH_PREFIX;$MTA_TORCH_PREFIX"
echo $CMAKE_PREFIX_PATH
cmake ../ \
-D ESPRESSO_BUILD_WITH_CUDA=OFF \
-D ESPRESSO_BUILD_WITH_CCACHE=OFF \
-D ESPRESSO_BUILD_WITH_WALBERLA=OFF \
-D ESPRESSO_BUILD_WITH_WALBERLA_FFT=OFF \
-D ESPRESSO_BUILD_WITH_WALBERLA_AVX=OFF \
-D ESPRESSO_BUILD_WITH_GSL=OFF \
-D ESPRESSO_BUILD_WITH_METATENSOR=ON \
-D CMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH" |
|
Your pull request does not meet our code documentation rules. The Doxygen documentation generated 2 unique warnings (total: 4, ignored: 2): You can generate these warnings with |
|
Your pull request does not meet our code formatting rules. To fix this, please do one of the following:
You can run Please note that there are often multiple ways to correctly format code. As I am just a robot, I sometimes fail to identify the most aesthetically pleasing way. So please look over my suggested changes and adapt them where the style does not make sense. |
Closes #4933