Skip to content

R0.13#73

Closed
denghuilu wants to merge 4 commits into
deepmodeling:r0.12from
denghuilu:r0.13
Closed

R0.13#73
denghuilu wants to merge 4 commits into
deepmodeling:r0.12from
denghuilu:r0.13

Conversation

@denghuilu

Copy link
Copy Markdown
Member

Add multi-GPU support unit

@jameswind jameswind left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work for a lower version of cuda, say, cuda-9.2?

@denghuilu

Copy link
Copy Markdown
Member Author

Does this work for a lower version of cuda, say, cuda-9.2?

It mainly depends on your TensorFlow version. If you use a lower version of TensorFlow, like TensorFlow-1.12, I think CUDA-9* is fine. Check this for a closer look.

Comment thread README.md
### Cmake conditional compilation
We introduced the USE-CUDA-TOOLKIT parameter as a control variable for whether to compile using the CUDA environment. If you want to build DeePMD-kit with CUDA-toolkit support, then execute cmake
```bash
cmake -DTF_GOOGLE_BIN=true -DUSE_CUDA_TOOLKIT=true -DTENSORFLOW_ROOT=$tensorflow_root \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, we don’t need to specify the CUDA’s PATH? Does it just use TensorFlow’s settings?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cmake has a function, named "find_package(CUDA REQUIRED)", which can detect the CUDA environment by default. If you load the CUDA module or set the CUDA environment in your system, when you set "-DUSE_CUDA_TOOLKIT=true" , CMake will set the CUDA environment by default.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user can specify the cuda tool-kit path by CUDA_TOOLKIT_ROOT_DIR, please check
https://cmake.org/cmake/help/latest/module/FindCUDA.html

@denghuilu denghuilu closed this Sep 25, 2019
njzjz-bot pushed a commit to njzjz-bot/deepmd-kit that referenced this pull request May 8, 2026
Imported from jinzhezenggroup/computational-chemistry-agent-skills.
Upstream-Commit: jinzhezenggroup/computational-chemistry-agent-skills@37ed5a2
Upstream-Paths:
- machine-learning-potentials/deepmd-finetune-dpa3
- machine-learning-potentials/deepmd-python-inference
- machine-learning-potentials/deepmd-train-dpa3
- machine-learning-potentials/deepmd-train-se-e2-a
- molecular-dynamics/lammps-deepmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants