Skip to content

Commit

Permalink
Only include virtual architecture cuda builds for ci wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-Minh committed Oct 18, 2024
1 parent 7cbe015 commit 0ec18e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 10 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,22 @@
}
}
},
{
"name": "local-pip-cuda",
"inherits": [
"pip-cuda"
],
"cacheVariables": {
"CMAKE_CUDA_ARCHITECTURES": "native"
}
},
{
"name": "ci-pip-cuda",
"inherits": [
"pip-cuda"
],
"cacheVariables": {
"CMAKE_CUDA_ARCHITECTURES": "80"
"CMAKE_CUDA_ARCHITECTURES": "70-virtual"
}
}
]
Expand Down
7 changes: 0 additions & 7 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ if(PBAT_USE_CUDA)
CUDA_RESOLVE_DEVICE_SYMBOLS ON
)

if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
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 0ec18e3

Please sign in to comment.