Skip to content

Commit

Permalink
Merge pull request #465 from CesiumGS/nvrtc-builtins
Browse files Browse the repository at this point in the history
Add nvrtc-builtins
  • Loading branch information
lilleyse authored Sep 5, 2023
2 parents bc86fba + ffdd1e3 commit 50680c0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,22 @@ install(
COMPONENT library
EXCLUDE_FROM_ALL)

# Nothing links against nvrtc-builtins but if we don't include it we get a runtime crash.
# Unfortunately this means we have to bypass CMake's dependency system and install it manually here.
if(WIN32)
install(
FILES "${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/cuda/cuda/bin/nvrtc-builtins64_118.dll"
DESTINATION "${KIT_EXTENSION_BIN_PATH}"
COMPONENT install)
else()
install(
FILES "${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/cuda/cuda/lib64/libnvrtc-builtins.so"
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/cuda/cuda/lib64/libnvrtc-builtins.so.11.8"
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/cuda/cuda/lib64/libnvrtc-builtins.so.11.8.89"
DESTINATION "${KIT_EXTENSION_BIN_PATH}"
COMPONENT install)
endif()

install(
TARGETS CesiumOmniversePythonBindings
ARCHIVE DESTINATION ${KIT_EXTENSION_BINDINGS_PATH} COMPONENT install
Expand Down
6 changes: 6 additions & 0 deletions exts/cesium.omniverse/config/extension.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ archiveDirs = ["vendor"]
[[native.plugin]]
path = "bin/cesium.omniverse.plugin"

[[native.library]]
"filter:platform"."windows-x86_64"."path" = "bin/${lib_prefix}nvrtc-builtins64_118${lib_ext}"

[[native.library]]
"filter:platform"."linux-x86_64"."path" = "bin/${lib_prefix}nvrtc-builtins${lib_ext}"

[settings]
exts."cesium.omniverse".defaultAccessToken = ""
persistent.exts."cesium.omniverse".userAccessToken = ""
Expand Down

0 comments on commit 50680c0

Please sign in to comment.