Comments (3)
Compatible toolchains to build C++ and CUDA code in Ubuntu noble:
- GCC 10.5.0 with NVCC 12.0
- GCC 11.4.0 with NVCC 12.0
- GCC 12.3.0 with NVCC 12.0
- GCC 13.2.0 with NVCC 12.0
- Clang 14.0.6 with NVCC 12.0
- Clang 17.0.6 for both C++ and CUDA code
from espresso.
When using Clang as the CUDA compiler, extra steps need to be taken when running the initial CMake configuration.
CMake cannot automatically detect default architectures:
CMake Error at /usr/share/cmake-3.27/Modules/CMakeDetermineCUDACompiler.cmake:603 (message):
Failed to detect a default CUDA architecture.
Compiler output:
Solution: add -D CMAKE_CUDA_ARCHITECTURES="61;75"
to the CMake command to specify which architectures to build for.
CMake fails to execute enable_language(CUDA)
:
CMake Error at /usr/share/cmake-3.27/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile):
Failed to generate test project build system.
Solution: only Clang 17 and Clang 18 are compatible with CUDA 12. Use for example CUDACXX=clang++-17
.
Here is a minimal CMake configuration with Clang:
CC=clang-17 CXX=clang++-17 CUDACXX=clang++-17 /usr/bin/cmake .. \
-D CMAKE_CUDA_ARCHITECTURES="61;75" -D CUDAToolkit_ROOT="/usr/lib/cuda"
A compiler warning will be generated during the build:
clang++-17: warning: CUDA version 12.0 is only partially supported [-Wunknown-cuda-version]
from espresso.
For GCC 13.2.0, one has to silence a compiler error with -D CMAKE_CUDA_FLAGS=-allow-unsupported-compiler
. When compiled with this flag, the main GPU algorithms in ESPResSo (P3M, DDS, LB) still work as expected.
from espresso.
Related Issues (20)
- CI build failed for merged PR HOT 1
- Vector-valued input parameters may be replaced by uninitialized data HOT 1
- CI build failed for merged PR HOT 1
- CI build failed for merged PR HOT 1
- Pylint config file is outdated
- CI build failed for merged PR HOT 1
- LB: avoid double communicaiton
- CI build failed for merged PR HOT 1
- CI build failed for merged PR HOT 1
- CI build failed for merged PR HOT 1
- Velocity Verlet step in documentation has a typo HOT 2
- CI build failed for merged PR HOT 1
- Implement a Metatensor adaptor HOT 1
- LB: velocity updated missing in population and force setters
- LB/Virtual sites: incomplete API change HOT 1
- Lost virtual particle propagation flag after checkpointing
- CI build failed for merged PR
- has_checkpoint overlooking existing checkpoint not indexed 0
- Particle image box is wrong with Verlet lists HOT 2
- Guard against unused arguments in script interfae HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espresso.