# Compilation error with ITK\_USE\_GPU ON in ConceptChecking

**URL:** https://discourse.itk.org/t/compilation-error-with-itk-use-gpu-on-in-conceptchecking/645
**Category:** Uncategorized
**Created:** [February 2, 2018, 2:39pm UTC](https://discourse.itk.org/t/compilation-error-with-itk-use-gpu-on-in-conceptchecking/645 "2018-02-02T14:39:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![phcerdan](https://discourse.itk.org/user_avatar/discourse.itk.org/phcerdan/32/286_2.png) [@phcerdan](https://discourse.itk.org/u/phcerdan)
#### Post date: [February 2, 2018, 2:39pm UTC](https://discourse.itk.org/t/compilation-error-with-itk-use-gpu-on-in-conceptchecking/645/1 "2018-02-02T14:39:46Z")

</div>

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`.

```auto
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](https://discourse.itk.org/uploads/default/original/1X/a996a4d823bb915fbc5aa40b47083da2c07ccee2.txt) (15.3 KB)

---

<div class="post-metadata">

### Author: ![hjmjohnson](https://discourse.itk.org/user_avatar/discourse.itk.org/hjmjohnson/32/23_2.png) [@hjmjohnson](https://discourse.itk.org/u/hjmjohnson)
#### Post date: [February 2, 2018, 9:22pm UTC](https://discourse.itk.org/t/compilation-error-with-itk-use-gpu-on-in-conceptchecking/645/2 "2018-02-02T21:22:31Z")

</div>

@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/](http://review.source.kitware.com/#/c/23145/)

---

<div class="post-metadata">

### Author: ![phcerdan](https://discourse.itk.org/user_avatar/discourse.itk.org/phcerdan/32/286_2.png) [@phcerdan](https://discourse.itk.org/u/phcerdan)
#### Post date: [February 2, 2018, 11:52pm UTC](https://discourse.itk.org/t/compilation-error-with-itk-use-gpu-on-in-conceptchecking/645/3 "2018-02-02T23:52:54Z")

</div>

That’s awesome, thanks!
