From 13c89f809d9dd3c2c37653c0bc249bb6e28bea03 Mon Sep 17 00:00:00 2001 From: "Lindsey B. Williams" Date: Tue, 9 Jun 2015 09:09:16 -0400 Subject: [PATCH 1/3] Fixed CMake files with intel compiler default install path, captilzation on maya Cg Libraries, and CLEW --- cmake/FindCLEW.cmake | 2 +- cmake/FindMaya.cmake | 4 ++-- cmake/FindTBB.cmake | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmake/FindCLEW.cmake b/cmake/FindCLEW.cmake index 8f92ea7e9..d9ffa908b 100644 --- a/cmake/FindCLEW.cmake +++ b/cmake/FindCLEW.cmake @@ -57,7 +57,7 @@ find_path(CLEW_INCLUDE_DIR HINTS ${_clew_SEARCH_DIRS} PATH_SUFFIXES - include + include include/CL NO_DEFAULT_PATH DOC "The directory where clew.h resides") diff --git a/cmake/FindMaya.cmake b/cmake/FindMaya.cmake index d4027c72a..2c8b79fa3 100644 --- a/cmake/FindMaya.cmake +++ b/cmake/FindMaya.cmake @@ -200,8 +200,8 @@ foreach(MAYA_LIB Foundation IMFbase tbb - cg - cgGL) + Cg + CgGL) find_library(MAYA_${MAYA_LIB}_LIBRARY ${MAYA_LIB} diff --git a/cmake/FindTBB.cmake b/cmake/FindTBB.cmake index 79c6ced57..1e27cbb53 100644 --- a/cmake/FindTBB.cmake +++ b/cmake/FindTBB.cmake @@ -58,6 +58,7 @@ else () "${TBB_LOCATION}/include" "$ENV{TBB_LOCATION}/include" PATHS + /opt/intel/tbb/include /usr/include /usr/local/include /usr/openwin/share/include @@ -118,6 +119,7 @@ foreach(TBB_LIB tbb tbb_debug "$ENV{TBB_LOCATION}/lib" "$ENV{TBB_LOCATION}/bin" "$ENV{PROGRAMFILES}/TBB/lib" + /opt/intel/tbb/lib/ /usr/lib /usr/lib/w32api /usr/local/lib From 16a79abecacd2ade9bb56e4b3fed0ba518af5065 Mon Sep 17 00:00:00 2001 From: "Lindsey B. Williams" Date: Tue, 9 Jun 2015 10:34:03 -0400 Subject: [PATCH 2/3] Fixed the CLEW Cmake Find, incase of /lib/static. --- cmake/FindCLEW.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindCLEW.cmake b/cmake/FindCLEW.cmake index d9ffa908b..12b2c44a8 100644 --- a/cmake/FindCLEW.cmake +++ b/cmake/FindCLEW.cmake @@ -67,7 +67,7 @@ find_library(CLEW_LIBRARY PATHS ${_clew_SEARCH_DIRS} PATH_SUFFIXES - lib lib64 + lib lib64 lib/static NO_DEFAULT_PATH DOC "The CLEW library") From c3c258d00feaeffe1123f6077179c155e71febfb Mon Sep 17 00:00:00 2001 From: "Lindsey B. Williams" Date: Tue, 9 Jun 2015 10:56:04 -0400 Subject: [PATCH 3/3] Hotfix for bug #472, compute_11 not supported, changed for now to hard-coded compute_20. Awating dynamic fix. --- opensubdiv/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensubdiv/CMakeLists.txt b/opensubdiv/CMakeLists.txt index 4b3cec84a..cdcb39fa2 100644 --- a/opensubdiv/CMakeLists.txt +++ b/opensubdiv/CMakeLists.txt @@ -106,7 +106,7 @@ if (NOT NO_LIB) if( CUDA_FOUND ) include_directories( "${CUDA_INCLUDE_DIRS}" ) if (UNIX) - list( APPEND CUDA_NVCC_FLAGS -Xcompiler -fPIC --gpu-architecture compute_11 ) + list( APPEND CUDA_NVCC_FLAGS -Xcompiler -fPIC --gpu-architecture compute_20 ) endif() endif()