Skip to content

Commit

Permalink
Set cuda architectures property if not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-Minh committed Oct 18, 2024
1 parent 8529549 commit 395a213
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ if(PBAT_USE_CUDA)
CUDA_SEPARABLE_COMPILATION ON
CUDA_RESOLVE_DEVICE_SYMBOLS ON
)

if(not CMAKE_CUDA_ARCHITECTURES)

Check failure on line 98 in source/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / Wheels on ubuntu-24.04

if given arguments:
set_target_properties(PhysicsBasedAnimationToolkit_PhysicsBasedAnimationToolkit
PROPERTIES
CUDA_ARCHITECTURES "native"
)
endif()

get_target_property(_pbat_sources PhysicsBasedAnimationToolkit_PhysicsBasedAnimationToolkit SOURCES)

foreach(_source IN ITEMS ${_pbat_sources})
Expand Down

0 comments on commit 395a213

Please sign in to comment.