Compilation error with ITK_USE_GPU ON in ConceptChecking

Hey there, I am rebuilding ITK from master, and hitting a compilation error related with ConceptChecking.

This is my build command, the error is related with the option -DITK_USE_GPU:BOOL=ON.

cmake -G Ninja -DCMAKE_CXX_COMPILER_ARG1=-std=c++11 -DCMAKE_CXX_FLAGS=-std=c++11 -DVCL_INCLUDE_CXX_0X:BOOL=ON -DModule_ITKVtkGlue:BOOL=ON -DModule_ITKReview:BOOL=ON -DModule_SCIFIO:BOOL=ON -DModule_LabelErodeDilate:BOOL=ON -DITK_USE_SYSTEM_LIBRARIES:BOOL=ON -DITK_USE_GPU:BOOL=ON -DExternalData_OBJECT_STORES:PATH=/home/phc/Software/ITK/ExternalData -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/home/phc/devtoolset/debug/ITK -DCMAKE_BUILD_TYPE=Debug  -DOPENCL_INCLUDE_DIRS:PATH=/opt/cuda/include/CL -DOPENCL_LIBRARIES:FILE=/opt/cuda/lib64/libOpenCL.so  -DITK_USE_FFTW:BOOL=ON -DITK_USE_FFTWD:BOOL=ON -DITK_USE_FFTWS:BOOL=ON -DITK_USE_FFTWF:BOOL=ON ../ITK-development

And this is the error:

error_conceptchecking_gpu.txt (15.3 KB)

@phcerdan

First: You can drop “-DCMAKE_CXX_STANDARD:STRING=11 -DCMAKE_CXX_FLAGS=-std=c++11” as these flags are automatically set for C++11 support now that CMake 3.9.5 is used.

Second: Please see proposed patch on gerrit: http://review.source.kitware.com/#/c/23145/

1 Like

That’s awesome, thanks!