[CMake] Cuda7 issues

Wesley Smith wesley.hoke at gmail.com
Fri Apr 17 19:15:58 EDT 2015


Ah, thanks!

On Fri, Apr 17, 2015 at 3:36 PM, James Bigler <jamesbigler at gmail.com> wrote:
> FindCUDA doesn't look for a specific version, but rather checks to see if
> the version it found is the one you asked for.  You can set the
> CUDA_TOOLKIT_ROOT_DIR to the one you want (and reconfigure - I've set it up
> to easily change this), or you can change your environment in Windows to
> point to the default version of CUDA you want (CUDA_PATH).
>
> It would be nice if it could search about and find an appropriate version.
>
> James
>
> On Fri, Apr 17, 2015 at 2:12 PM, Wesley Smith <wesley.hoke at gmail.com> wrote:
>>
>> Hi,
>> I'm trying to use Cmake 3.2.2 to build with Cuda7 on Windows 8. I have
>> both Cuda 6.5 and Cuda 7.0 installed in these locations:
>>
>> C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5
>> C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.0
>>
>> When I try these:
>>
>> find_package(CUDA "7.0" REQUIRED)
>> find_package(CUDA 7.0 REQUIRED)
>> find_package(CUDA 7 REQUIRED)
>>
>>
>> (just shooting in the dark here to see if something will work)
>>
>> I always get the error
>>
>> CMake Error at C:/Program Files
>>
>> (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138
>> (message):
>> Could NOT find CUDA: Found unsuitable version "6.5", but required is at
>> least "7.0" (found C:/Program Files/NVIDIA GPU Computing
>> Toolkit/CUDA/v6.5)
>> Call Stack (most recent call first):
>> C:/Program Files
>>
>> (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:372
>> (_FPHSA_FAILURE_MESSAGE)
>> C:/Program Files
>> (x86)/CMake/share/cmake-3.2/Modules/FindCUDA.cmake:939
>> (find_package_handle_standard_args)
>> CMakeLists.txt:122 (find_package)
>>
>>
>> Any ideas?
>>
>> thanks,
>> wes
>> --
>>
>> Powered by www.kitware.com
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For more
>> information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/cmake
>
>


More information about the CMake mailing list