Skip to content

Commit 50680c0

Browse files
authored
Merge pull request #465 from CesiumGS/nvrtc-builtins
Add nvrtc-builtins
2 parents bc86fba + ffdd1e3 commit 50680c0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

CMakeLists.txt

+16
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,22 @@ install(
597597
COMPONENT library
598598
EXCLUDE_FROM_ALL)
599599

600+
# Nothing links against nvrtc-builtins but if we don't include it we get a runtime crash.
601+
# Unfortunately this means we have to bypass CMake's dependency system and install it manually here.
602+
if(WIN32)
603+
install(
604+
FILES "${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/cuda/cuda/bin/nvrtc-builtins64_118.dll"
605+
DESTINATION "${KIT_EXTENSION_BIN_PATH}"
606+
COMPONENT install)
607+
else()
608+
install(
609+
FILES "${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/cuda/cuda/lib64/libnvrtc-builtins.so"
610+
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/cuda/cuda/lib64/libnvrtc-builtins.so.11.8"
611+
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/cuda/cuda/lib64/libnvrtc-builtins.so.11.8.89"
612+
DESTINATION "${KIT_EXTENSION_BIN_PATH}"
613+
COMPONENT install)
614+
endif()
615+
600616
install(
601617
TARGETS CesiumOmniversePythonBindings
602618
ARCHIVE DESTINATION ${KIT_EXTENSION_BINDINGS_PATH} COMPONENT install

exts/cesium.omniverse/config/extension.toml

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ archiveDirs = ["vendor"]
5252
[[native.plugin]]
5353
path = "bin/cesium.omniverse.plugin"
5454

55+
[[native.library]]
56+
"filter:platform"."windows-x86_64"."path" = "bin/${lib_prefix}nvrtc-builtins64_118${lib_ext}"
57+
58+
[[native.library]]
59+
"filter:platform"."linux-x86_64"."path" = "bin/${lib_prefix}nvrtc-builtins${lib_ext}"
60+
5561
[settings]
5662
exts."cesium.omniverse".defaultAccessToken = ""
5763
persistent.exts."cesium.omniverse".userAccessToken = ""

0 commit comments

Comments
 (0)