-
Notifications
You must be signed in to change notification settings - Fork 407
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
Add CUDA Ampere configuration support #3122
Conversation
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.
This looks like it matches what we did for other architectures
+ $(KOKKOS_INTERNAL_USE_ARCH_MAXWELL52) \ | ||
+ $(KOKKOS_INTERNAL_USE_ARCH_MAXWELL53)) | ||
KOKKOS_INTERNAL_USE_ARCH_NVIDIA := $(shell expr $(KOKKOS_INTERNAL_USE_ARCH_KEPLER35) \ | ||
+ $(KOKKOS_INTERNAL_USE_ARCH_MAXWELL50)) |
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.
What the deal with that change?
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.
the conditional was redundant. You only enter this if none of the above were set, and the only ones to check for at this pointer were general Maxwell/Kepler which set Maxwell50 and Kepler35 respectively. So you only need to some up those two at this point.
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.
cmake/compile_tests/cuda_compute_capability.cc
also needs to be updated.
Makefile.kokkos
Outdated
+ $(KOKKOS_INTERNAL_USE_ARCH_VOLTA70) \ | ||
+ $(KOKKOS_INTERNAL_USE_ARCH_VOLTA72) \ | ||
+ $(KOKKOS_INTERNAL_USE_ARCH_TURING75) \ | ||
+ $(KOKKOS_INTERNAL_USE_ARCH_AMPERE80)) |
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.
+ $(KOKKOS_INTERNAL_USE_ARCH_AMPERE80)) | |
+ $(KOKKOS_INTERNAL_USE_ARCH_AMPERE80)) |
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.
there were some tabs. fixed.
cmake/kokkos_arch.cmake
Outdated
@@ -79,6 +80,10 @@ IF (KOKKOS_ENABLE_CUDA) | |||
IF (KOKKOS_ARCH_VOLTA70 OR KOKKOS_ARCH_VOLTA72) | |||
SET(KOKKOS_ARCH_VOLTA ON) | |||
ENDIF() | |||
|
|||
IF (KOKKOS_ARCH_AMPERE80) | |||
SET(KOKKOS_ARCH_AMPERE ON) |
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.
SET(KOKKOS_ARCH_AMPERE ON) | |
SET(KOKKOS_ARCH_AMPERE ON) |
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.
fixed
Added the cuda_compute_capability.cc option. |
No description provided.