Skip to content

Commit 0cfdfc5

Browse files
committed
Switch to new NVIDIA GitHub repo for OptiX headers
Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 2c5fe05 commit 0cfdfc5

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ jobs:
532532
pybind11_ver: v2.10.0
533533
simd: avx2,f16c
534534
skip_tests: 1
535-
setenvs: export OSL_CMAKE_FLAGS="-DOSL_USE_OPTIX=1" OPTIX_VERSION=7.0
535+
setenvs: export OSL_CMAKE_FLAGS="-DOSL_USE_OPTIX=1"
536+
OPTIX_VERSION=7.0.0
536537
OPENIMAGEIO_CMAKE_FLAGS=-DBUILD_FMT_VERSION=9.1.0
537538
- desc: VP2024 gcc11/C++17 llvm17 py3.11 boost1.82 oiio-rel avx2
538539
nametag: linux-optix-vfx2025
@@ -544,7 +545,7 @@ jobs:
544545
pybind11_ver: v2.11.1
545546
simd: avx2,f16c
546547
setenvs: export OSL_CMAKE_FLAGS="-DOSL_USE_OPTIX=1"
547-
OPTIX_VERSION=9.0
548+
OPTIX_VERSION=9.0.0
548549
OPENIMAGEIO_CMAKE_FLAGS=-DBUILD_FMT_VERSION=9.1.0
549550
# setenvs: export CONAN_PACKAGES="ptex/2.4.2@aswf/vfx2024"
550551

src/build-scripts/gh-installdeps.bash

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,23 @@ cmake --version
148148

149149

150150
if [[ "$OPTIX_VERSION" != "" ]] ; then
151-
echo "Requested OPTIX_VERSION = '${OPTIX_VERSION}'"
152-
mkdir -p $LOCAL_DEPS_DIR/dist/include/internal
153-
OPTIXLOC=https://developer.download.nvidia.com/redist/optix/v${OPTIX_VERSION}
154-
for f in optix.h optix_device.h optix_function_table.h \
155-
optix_function_table_definition.h optix_host.h \
156-
optix_stack_size.h optix_stubs.h optix_types.h optix_7_device.h \
157-
optix_7_host.h optix_7_types.h \
158-
internal/optix_7_device_impl.h \
159-
internal/optix_7_device_impl_exception.h \
160-
internal/optix_7_device_impl_transformations.h
161-
do
162-
curl --retry 100 -m 120 --connect-timeout 30 \
163-
$OPTIXLOC/include/$f > $LOCAL_DEPS_DIR/dist/include/$f
164-
done
165-
export OptiX_ROOT=$LOCAL_DEPS_DIR/dist
151+
OPTIXREPO=${OPTIXREPO:=https://github.com/NVIDIA/optix-dev}
152+
echo "Requested OPTIX_VERSION = '${OPTIX_VERSION}' from ${OPTIXREPO}"
153+
# OPTIXLOC=https://developer.download.nvidia.com/redist/optix/v${OPTIX_VERSION}
154+
export OptiX_ROOT=$LOCAL_DEPS_DIR/dist/optix-dev
155+
git clone $OPTIXREPO $OptiX_ROOT
156+
# mkdir -p $LOCAL_DEPS_DIR/dist/include/internal
157+
# for f in optix.h optix_device.h optix_function_table.h \
158+
# optix_function_table_definition.h optix_host.h \
159+
# optix_stack_size.h optix_stubs.h optix_types.h optix_7_device.h \
160+
# optix_7_host.h optix_7_types.h \
161+
# internal/optix_7_device_impl.h \
162+
# internal/optix_7_device_impl_exception.h \
163+
# internal/optix_7_device_impl_transformations.h
164+
# do
165+
# curl --retry 100 -m 120 --connect-timeout 30 \
166+
# $OPTIXLOC/include/$f > $LOCAL_DEPS_DIR/dist/include/$f
167+
# done
166168
fi
167169

168170

0 commit comments

Comments
 (0)