Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redesign-prototype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nektar
redesign-prototype
Commits
45115a8b
Commit
45115a8b
authored
1 year ago
by
Jacques Xing
Committed by
Chris Cantwell
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Update readme cmake
parent
810fb15e
No related branches found
Branches containing commit
No related tags found
1 merge request
!33
Update readme cmake
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+3
-1
3 additions, 1 deletion
CMakeLists.txt
README.md
+19
-1
19 additions, 1 deletion
README.md
with
22 additions
and
2 deletions
CMakeLists.txt
+
3
−
1
View file @
45115a8b
...
...
@@ -11,7 +11,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set
(
CMAKE_EXPORT_COMPILE_COMMANDS ON
)
if
(
NOT DEFINED CMAKE_CUDA_ARCHITECTURES
)
set
(
CMAKE_CUDA_ARCHITECTURES 86
)
set
(
CMAKE_CUDA_ARCHITECTURES 75 80 86
)
# CMake 3.24
# set(CMAKE_CUDA_ARCHITECTURES native)
endif
()
# Default install location: build/dist
...
...
This diff is collapsed.
Click to expand it.
README.md
+
19
−
1
View file @
45115a8b
...
...
@@ -35,6 +35,24 @@ To build the redesign project with CUDA:
This can be obtained by using the following command
```
bash
cmake ../
-DNektar
++_DIR
=
~/code/nektarMaster/build/dist/lib64/nektar++/cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DNEKTAR_USE_CUDA
=
ON
-DNEKTAR_USE_SIMD
=
OFF
cmake ../
-DNektar
++_DIR
=
~/code/nektarMaster/build/dist/lib64/nektar++/cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DNEKTAR_USE_CUDA
=
ON
-DNEKTAR_USE_SIMD
=
OFF
-DCMAKE_CUDA_ARCHITECTURES
=
86
make
```
NOTE: The
`CMAKE_CUDA_ARCHITECTURES`
parameter must be set to the appropriate compute capability of the GPU. On Linux, the compute capbability can be obtained by using the following command
```
bash
nvidia-smi
--query-gpu
=
compute_cap
--format
=
csv
```
Here is a list of CUDA compute capability:
-
6.0 ->
`-DCMAKE_CUDA_ARCHITECTURES=60`
-
6.1 ->
`-DCMAKE_CUDA_ARCHITECTURES=61`
-
6.2 ->
`-DCMAKE_CUDA_ARCHITECTURES=62`
-
7.0 ->
`-DCMAKE_CUDA_ARCHITECTURES=70`
-
7.2 ->
`-DCMAKE_CUDA_ARCHITECTURES=72`
-
7.5 ->
`-DCMAKE_CUDA_ARCHITECTURES=75`
-
8.0 ->
`-DCMAKE_CUDA_ARCHITECTURES=80`
-
8.6 ->
`-DCMAKE_CUDA_ARCHITECTURES=86`
-
8.7 ->
`-DCMAKE_CUDA_ARCHITECTURES=87`
-
8.9 ->
`-DCMAKE_CUDA_ARCHITECTURES=89`
-
9.0 ->
`-DCMAKE_CUDA_ARCHITECTURES=90`
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment