Skip to content

Commit fd94669

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

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

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)