Skip to content

Instantly share code, notes, and snippets.

@jeremyselan
Created April 16, 2012 22:53
Show Gist options
  • Save jeremyselan/2402166 to your computer and use it in GitHub Desktop.
Save jeremyselan/2402166 to your computer and use it in GitHub Desktop.
CUDA build test
mkdir -p build_cuda_$HOST
cd build_cuda_$HOST
cmake \
-D CMAKE_BUILD_TYPE=Release \
-D OCIO_BUILD_SHARED=TRUE \
-D OCIO_BUILD_CUDA=TRUE \
-D CUDA_TOOLKIT_ROOT_DIR=/net/apps/spinux1/nvidia/cuda-4.0.17/cuda \
-D OCIO_USE_BOOST_PTR=TRUE \
-D OCIO_BUILD_TESTS=TRUE \
-D OCIO_BUILD_APPS=TRUE \
-D OIIO_PATH=/net/homedirs/jeremys/git/oiio.js/dist/spinux1/ \
-D OCIO_BUILD_NUKE=FALSE \
-D OCIO_BUILD_PYGLUE=FALSE \
../
make
[ 58%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/Processor.cpp.o
[ 58%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/Look.cpp.o
[ 59%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/Lut3DOp.cpp.o
[ 59%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/TruelightOp.cpp.o
[ 60%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/PathUtils.cpp.o
[ 60%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/md5/md5.cpp.o
[ 61%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/pystring/pystring.cpp.o
[ 61%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/TruelightTransform.cpp.o
[ 62%] Building CXX object src/core/CMakeFiles/OpenColorIO_STATIC.dir/GpuAllocationNoOp.cpp.o
Linking CXX static library libOpenColorIO.a
make[2]: warning: Clock skew detected. Your build may be incomplete.
[ 63%] Built target OpenColorIO_STATIC
Scanning dependencies of target ocio_core_tests
make[2]: Warning: File `src/core_tests/CMakeFiles/ocio_core_tests.dir/depend.make' has modification time 0.0049 s in the future
[ 64%] Building CXX object src/core_tests/CMakeFiles/ocio_core_tests.dir/__/core/AllocationOp.cpp.o
In file included from /net/homedirs/jeremys/git/ocio.js/src/core/CudaOps.h:34,
from /net/homedirs/jeremys/git/ocio.js/src/core/Op.h:38,
from /net/homedirs/jeremys/git/ocio.js/src/core/AllocationOp.h:35,
from /net/homedirs/jeremys/git/ocio.js/src/core/AllocationOp.cpp:29:
/net/homedirs/jeremys/git/ocio.js/src/core/CudaSupport.h:33:30: error: cuda_runtime_api.h: No such file or directory
In file included from /net/homedirs/jeremys/git/ocio.js/src/core/CudaOps.h:34,
from /net/homedirs/jeremys/git/ocio.js/src/core/Op.h:38,
from /net/homedirs/jeremys/git/ocio.js/src/core/AllocationOp.h:35,
from /net/homedirs/jeremys/git/ocio.js/src/core/AllocationOp.cpp:29:
/net/homedirs/jeremys/git/ocio.js/src/core/CudaSupport.h:67: error: variable or field 'CheckCudaError' declared void
/net/homedirs/jeremys/git/ocio.js/src/core/CudaSupport.h:67: error: 'cudaError_t' was not declared in this scope
make[2]: *** [src/core_tests/CMakeFiles/ocio_core_tests.dir/__/core/AllocationOp.cpp.o] Error 1
make[1]: *** [src/core_tests/CMakeFiles/ocio_core_tests.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment