Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTX 30 Series Compatibility #169 #187

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 23 additions & 13 deletions cmake/FindOptiX.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2018 NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -31,11 +31,18 @@
# Our initial guess will be within the SDK.
set(OptiX_INSTALL_DIR "${CMAKE_SOURCE_DIR}/redner-dependencies/optix" CACHE PATH "Path to OptiX installed location.")

# The distribution contains both 32 and 64 bit libraries. Adjust the library
# The distribution contains only 64 bit libraries. Error when we have been mis-configured.
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
if(WIN32)
message(SEND_ERROR "Make sure when selecting the generator, you select one with Win64 or x64.")
endif()
message(FATAL_ERROR "OptiX only supports builds configured for 64 bits.")
endif()

# search path based on the bit-ness of the build. (i.e. 64: bin64, lib64; 32:
# bin, lib). Note that on Mac, the OptiX library is a universal binary, so we
# only need to look in lib and not lib64 for 64 bit builds.
if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT APPLE)
if(NOT APPLE)
set(bit_dest "64")
else()
set(bit_dest "")
Expand All @@ -62,9 +69,9 @@ macro(OPTIX_find_api_library name version)
endif()
endmacro()

OPTIX_find_api_library(optix 51)
OPTIX_find_api_library(optixu 1)
OPTIX_find_api_library(optix_prime 1)
OPTIX_find_api_library(optix 6.5.0)
OPTIX_find_api_library(optixu 6.5.0)
OPTIX_find_api_library(optix_prime 6.5.0)

# Include
find_path(OptiX_INCLUDE
Expand All @@ -77,24 +84,27 @@ find_path(OptiX_INCLUDE
)

# Check to make sure we found what we were looking for
function(OptiX_report_error error_message required)
function(OptiX_report_error error_message required component )
if(DEFINED OptiX_FIND_REQUIRED_${component} AND NOT OptiX_FIND_REQUIRED_${component})
set(required FALSE)
endif()
if(OptiX_FIND_REQUIRED AND required)
message(FATAL_ERROR "${error_message}")
message(FATAL_ERROR "${error_message} Please locate before proceeding.")
else()
if(NOT OptiX_FIND_QUIETLY)
message(STATUS "${error_message}")
endif(NOT OptiX_FIND_QUIETLY)
endif()
endfunction()

#if(NOT optix_LIBRARY)
# OptiX_report_error("optix library not found. Please locate before proceeding." TRUE)
#endif()
if(NOT optix_LIBRARY)
OptiX_report_error("optix library not found." TRUE libraries )
endif()
if(NOT OptiX_INCLUDE)
OptiX_report_error("OptiX headers (optix.h and friends) not found. Please locate before proceeding." TRUE)
OptiX_report_error("OptiX headers (optix.h and friends) not found." TRUE headers )
endif()
if(NOT optix_prime_LIBRARY)
OptiX_report_error("optix Prime library not found. Please locate before proceeding." FALSE)
OptiX_report_error("optix Prime library not found." TRUE libraries )
endif()

# Macro for setting up dummy targets
Expand Down
2 changes: 1 addition & 1 deletion redner-dependencies
Submodule redner-dependencies updated 59 files
+ optix/OptiX_EndUserLicense.pdf
+ optix/bin64/optix.6.5.0.dll
+ optix/bin64/optix_prime.6.5.0.dll
+ optix/bin64/optixu.6.5.0.dll
+ optix/doc/OptiX_API_Reference_6.5.0.pdf
+ optix/doc/OptiX_EndUserLicense.pdf
+ optix/doc/OptiX_Programming_Guide_6.5.0.pdf
+ optix/doc/OptiX_Quickstart_Guide_6.5.0.pdf
+45 −98 optix/doc/OptiX_ThirdParty_Licenses.txt
+1 −2 optix/include/internal/optix_datatypes.h
+218 −120 optix/include/internal/optix_declarations.h
+1 −1 optix/include/internal/optix_defines.h
+351 −15 optix/include/internal/optix_internal.h
+2 −2 optix/include/optix.h
+1 −1 optix/include/optix_cuda.h
+70 −2 optix/include/optix_cuda_interop.h
+1 −1 optix/include/optix_d3d10_interop.h
+1 −1 optix/include/optix_d3d11_interop.h
+1 −1 optix/include/optix_d3d9_interop.h
+1,332 −417 optix/include/optix_device.h
+6 −6 optix/include/optix_gl_interop.h
+3,496 −1,383 optix/include/optix_host.h
+1 −1 optix/include/optix_math.h
+1 −1 optix/include/optix_prime/internal/Atom.h
+1 −1 optix/include/optix_prime/internal/Handle.h
+1 −1 optix/include/optix_prime/internal/Ref.h
+2 −2 optix/include/optix_prime/optix_prime.h
+1 −1 optix/include/optix_prime/optix_prime_declarations.h
+1 −1 optix/include/optix_prime/optix_primepp.h
+1 −1 optix/include/optix_sizet.h
+1 −2 optix/include/optix_world.h
+4 −4 optix/include/optixu/optixpp.h
+1,097 −142 optix/include/optixu/optixpp_namespace.h
+1 −93 optix/include/optixu/optixu.h
+1 −1 optix/include/optixu/optixu_aabb.h
+3 −3 optix/include/optixu/optixu_aabb_namespace.h
+0 −459 optix/include/optixu/optixu_high_level.h
+0 −136 optix/include/optixu/optixu_high_level_shared.h
+1 −1 optix/include/optixu/optixu_math.h
+922 −8 optix/include/optixu/optixu_math_namespace.h
+1 −1 optix/include/optixu/optixu_math_stream.h
+1 −1 optix/include/optixu/optixu_math_stream_namespace.h
+1 −1 optix/include/optixu/optixu_matrix.h
+2 −2 optix/include/optixu/optixu_matrix_namespace.h
+1 −1 optix/include/optixu/optixu_quaternion.h
+1 −1 optix/include/optixu/optixu_quaternion_namespace.h
+0 −383 optix/include/optixu/optixu_traversal.h
+1 −1 optix/include/optixu/optixu_vector_functions.h
+1 −1 optix/include/optixu/optixu_vector_types.h
+ optix/lib64/liboptix.so
+ optix/lib64/liboptix.so.6.5.0
+ optix/lib64/liboptix_prime.so
+0 −1 optix/lib64/liboptix_prime.so.1
+ optix/lib64/liboptix_prime.so.6.5.0
+ optix/lib64/liboptixu.so.6.5.0
+ optix/lib64/optix.6.5.0.lib
+ optix/lib64/optix_prime.1.lib
+ optix/lib64/optix_prime.6.5.0.lib
+ optix/lib64/optixu.6.5.0.lib
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ def build_extension(self, ext):
dynamic_libraries.append('redner-dependencies/embree/lib-linux/libtbb.so.2')
dynamic_libraries.append('redner-dependencies/embree/lib-linux/libtbbmalloc.so.2')
if build_with_cuda:
dynamic_libraries.append('redner-dependencies/optix/lib64/liboptix_prime.so.1')
dynamic_libraries.append('redner-dependencies/optix/lib64/liboptix_prime.so.6.5.0')
elif sys.platform == 'win32':
dynamic_libraries.append('redner-dependencies/embree/bin/embree3.dll')
dynamic_libraries.append('redner-dependencies/embree/bin/tbb.dll')
dynamic_libraries.append('redner-dependencies/embree/bin/tbbmalloc.dll')
if build_with_cuda:
dynamic_libraries.append('redner-dependencies/optix/bin64/optix_prime.1.dll')
dynamic_libraries.append('redner-dependencies/optix/bin64/optix_prime.6.5.0.dll')

project_name = 'redner'
if 'PROJECT_NAME' in os.environ:
Expand Down