[CMake] CUDA Build problems
James C. Sutherland
James.Sutherland at utah.edu
Fri Mar 26 14:57:17 EDT 2010
I am trying to use CMake to build a very simple CUDA program. I am seeing the following errors when I try to build:
> /usr/include/c++/4.2.1/new(95): error: first parameter of allocation function must be of type "size_t"
> /usr/include/c++/4.2.1/new(96): error: first parameter of allocation function must be of type "size_t"
> /usr/include/c++/4.2.1/new(99): error: first parameter of allocation function must be of type "size_t"
> /usr/include/c++/4.2.1/new(100): error: first parameter of allocation function must be of type "size_t"
> /usr/include/c++/4.2.1/new(105): error: first parameter of allocation function must be of type "size_t"
> /usr/include/c++/4.2.1/new(106): error: first parameter of allocation function must be of type "size_t"
>
> 6 errors detected in the compilation of "/tmp/tmpxft_0000284b_00000000-4_device.cpp1.ii".
> CMake Error at CMakeFiles/test_generated_device.cu.o.cmake:235 (message):
> Error generating file
> /Users/u0033394/Downloads/examples/cpp_integration/build/./test_generated_device.cu.o
Any ideas on what would be causing this?
My CMakeLists.txt file looks like:
> cmake_minimum_required(VERSION 2.6)
> project( JCSCudaTest CXX )
>
> find_package(CUDA)
>
> cuda_add_executable(test
> device.cu
> host.cpp
> )
James
More information about the CMake
mailing list