Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
hg-misc-tools
Commits
087f1e9c
Commit
087f1e9c
authored
May 27, 2026
by
one
Browse files
[dtk-local-overrides] Add hiprtc-config.cmake
parent
56fcb06b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
projects/dtk-local-overrides/install.sh
projects/dtk-local-overrides/install.sh
+1
-0
projects/dtk-local-overrides/lib/cmake/hiprtc/hiprtc-config.cmake
.../dtk-local-overrides/lib/cmake/hiprtc/hiprtc-config.cmake
+44
-0
No files found.
projects/dtk-local-overrides/install.sh
View file @
087f1e9c
...
...
@@ -8,6 +8,7 @@ overlay_files=(
"hip/lib/cmake/hip/hip-config.cmake 0644"
"hip/lib/cmake/hip/hip-config-amd.cmake 0644"
"hip/lib/cmake/hip/hip-config-nvidia.cmake 0644"
"lib/cmake/hiprtc/hiprtc-config.cmake 0644"
)
derived_files
=(
...
...
projects/dtk-local-overrides/lib/cmake/hiprtc/hiprtc-config.cmake
0 → 100644
View file @
087f1e9c
# CMake package shim for DTK hiprtc.
# DTK 26.04 ships hiprtc headers and libhiprtc.so, but not hiprtcConfig.cmake.
include
(
FindPackageHandleStandardArgs
)
set
(
_hiprtc_roots
)
foreach
(
_root IN ITEMS
"$ENV{HIP_PATH}"
"$ENV{ROCM_PATH}"
"/opt/dtk/hip"
"/opt/dtk"
)
if
(
_root AND EXISTS
"
${
_root
}
"
)
list
(
APPEND _hiprtc_roots
"
${
_root
}
"
)
endif
()
endforeach
()
find_path
(
hiprtc_INCLUDE_DIR
NAMES hip/hiprtc.h
HINTS
${
_hiprtc_roots
}
PATH_SUFFIXES include hip/include
)
find_library
(
hiprtc_LIBRARY
NAMES hiprtc
HINTS
${
_hiprtc_roots
}
PATH_SUFFIXES lib lib64 hip/lib hip/lib64
)
find_package_handle_standard_args
(
hiprtc
REQUIRED_VARS hiprtc_INCLUDE_DIR hiprtc_LIBRARY
)
if
(
hiprtc_FOUND
)
set
(
hiprtc_INCLUDE_DIRS
"
${
hiprtc_INCLUDE_DIR
}
"
)
set
(
hiprtc_LIBRARIES
"
${
hiprtc_LIBRARY
}
"
)
if
(
NOT TARGET hiprtc::hiprtc
)
add_library
(
hiprtc::hiprtc SHARED IMPORTED
)
set_target_properties
(
hiprtc::hiprtc PROPERTIES
IMPORTED_LOCATION
"
${
hiprtc_LIBRARY
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
hiprtc_INCLUDE_DIR
}
"
)
endif
()
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment