Skip to content

Commit

Permalink
Fix CUDA cmake (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
goliaro authored Oct 23, 2023
1 parent dd9f62d commit 3009890
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ if(CUDA_FOUND)
message( STATUS "CUDA Detected CUDA_ARCH : ${DETECTED_CUDA_ARCH}" )
set(FF_CUDA_ARCH ${DETECTED_CUDA_ARCH})
# Set FF_CUDA_ARCH to the list of all GPU architectures compatible with FlexFlow
elseif("${FF_CUDA_ARCH}" STREQUAL "all")
set(FF_CUDA_ARCH 60,61,62,70,72,75,80,86,90)
elseif("${FF_CUDA_ARCH}" STREQUAL "all")
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.8")
set(FF_CUDA_ARCH 60,61,62,70,72,75,80,86,90)
else()
set(FF_CUDA_ARCH 60,61,62,70,72,75,80,86)
endif()
endif()

# create CUDA_GENCODE list based on FF_CUDA_ARCH
Expand Down

0 comments on commit 3009890

Please sign in to comment.