Skip to content

Commit

Permalink
Add cuda_noise dir to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeneren committed Dec 27, 2019
1 parent f5ad5d4 commit d49de37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/Helpers.cmake)

set(THIRDPARTY_DIR "${CMAKE_SOURCE_DIR}/thirdparty/")


#set OIDN libraries

set(OID_DIR "${THIRDPARTY_DIR}/OpenImageDenoise")
find_library(OIDN_LIB "OpenImageDenoise" "${OID_DIR}/lib")
find_library(OIDN_MKLDNN_LIB "mkldnn" "${OID_DIR}/lib")
Expand Down Expand Up @@ -113,7 +111,7 @@ message ( STATUS "Build CUDA kernels: ${CUDA_SOURCES}" )
_COMPILEPTX ( SOURCES ${CUDA_SOURCES}
TARGET_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
GENERATED CUDA_PTX GENPATHS CUDA_PTX_PATHS
INCLUDE "${CMAKE_CURRENT_SOURCE_DIR},${_VCPKG_INCLUDE_DIR},${CMAKE_CURRENT_SOURCE_DIR}/common,${CMAKE_CURRENT_SOURCE_DIR}/gpu_vdb"
INCLUDE "${CMAKE_CURRENT_SOURCE_DIR},${_VCPKG_INCLUDE_DIR},${CMAKE_CURRENT_SOURCE_DIR}/common, ${THIRDPARTY_DIR}/cuda-noise/include, ${CMAKE_CURRENT_SOURCE_DIR}/gpu_vdb"
OPTIONS -arch=compute_30 -code=sm_30 --ptxas-options=-v -O3 --use_fast_math --maxrregcount=128)

###################################################################
Expand All @@ -132,4 +130,5 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/gpu_vdb)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bvh)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/geometry)
include_directories(${THIRDPARTY_DIR}/cuda-noise/include)
include_directories(${OID_DIR}/include)
1 change: 1 addition & 0 deletions source/texture_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

// Internal includes
#include "kernel_params.h"
#include "cuda_noise.cuh"

#define INV_2_PI 1.0f / (2.0f * M_PI)
#define INV_4_PI 1.0f / (4.0f * M_PI)
Expand Down

0 comments on commit d49de37

Please sign in to comment.