Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-08-20 Thread Brian Davis
Now that I have working machines and can create CUDA app (simple) successfully that will run ​While trying: message( "GPU_ARCH = ${GPU_ARCH}" ) target_compile_options( ${SOME_LIB_NAME} PRIVATE $<$:${GPU_ARCH}> ) with output of: GPU_ARCH = -gencode

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-08-07 Thread Robert Maynard
It is great to hear that you have been able to resolve the compilation issues with CMake, though it is very weird and worry some that only formatting your machine would resolve the issue. 1) The error code you are getting (46-cudaErrorDevicesUnavailable ) generally means that another CUDA program

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-08-06 Thread Brian Davis
Upon: wiping Dell 7559 (yes the weirdness has gotten this bad), reinstalling from Dell Factory image upgrading system to Latest Win 10 (now not in developer mode anymore) Dell update to get latest drivers and other goobly bits Removing all Virus Scanners to keep this from possibly interfering

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-31 Thread Brian J. Davis
My responses are inline. As are mine. On Sat, Jul 29, 2017 at 7:00 PM, Brian J. Davis http://public.kitware.com/mailman/listinfo/cmake>> wrote: >/@Robert />//>/I created a fresh simple cmake project in 3.9. This appeared to find CUDA />/8.0 successfully so it may have something do with my

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-31 Thread Robert Maynard
My responses are inline. On Sat, Jul 29, 2017 at 7:00 PM, Brian J. Davis wrote: > @Robert > > I created a fresh simple cmake project in 3.9. This appeared to find CUDA > 8.0 successfully so it may have something do with my other project settings > that I am trying to get to

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-31 Thread Brian J. Davis
Could this be a Win 10 Pro/Enterprise CMake combo issue. I brought over demo project to OS refreshed M4700. Was Win7 Pro now Windows 10 Enterprise. Dell M4700 combo is: Device 0: "Quadro K1000M" CUDA Driver Version / Runtime Version 8.0 / 7.5 CMake 3.2 or 3.9 will build but

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-30 Thread Brian J. Davis
Saga novella continues: >> Next I am going to remove all NVIDA drivers and try reinstall of CUDA 7.5 see if I can get deviceQuery to report 7.5/7.5. Nvidia 352.65 driver removal from Add/Remove Programs Device Manager -> NVIDIA GeForce GTX 960M -> General reports "device has been disabled"

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-30 Thread Brian J. Davis
Things I have tried: Install Visual Studio 15 Install CUDA 8.0 + patch Install Visual Studio 13 <- Yes Nvidia / CMake'ers sometimes we have to do back ports Install CUDA 7.5 VS 13 will run CUDA 8.0 samples nbody/deviceQuery VS 13 does not run CUDA 7.5 samples nbody or any example attempting

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Brian J. Davis
With simple stand alone cmake 3.9 project using cmake_minimum_required(VERSION 3.9) project(cmake_testing CXX CUDA) I can get a simple app to compile. It however fails to run with: GPU Device 0: "GeForce GTX 960M" with compute capability 5.0 Current device is [0] Current device is [0] CUDA

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Brian J. Davis
@Robert I created a fresh simple cmake project in 3.9. This appeared to find CUDA 8.0 successfully so it may have something do with my other project settings that I am trying to get to work with 3.9, VS13, CUDA 7.5/8.0. Using: message( CUDACXX = ${CUDACXX}) message( CMAKE_CUDA_COMPILER =

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Robert Maynard
Hi, Can you please provide run from the build directory cmake --system-information and send the resulting file? That will help me track down why CUDA is failing for you. On Fri, Jul 28, 2017 at 8:40 PM, Brian J. Davis wrote: > > @Robert > > Adding CUDA to my

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Robert Maynard
The way to control which CUDA version to use is by setting the CUDACXX environment variable, or by setting the CMAKE_CUDA_COMPILER cache variable. To specify which CUDA compilation language you want 98/11/14 you can use any of methods that are possible by compile features (

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-29 Thread Brian J. Davis
Saying I could get this to work, which it is not how, would one using project: Project( myproject CXX CUDA) specify the version of CUDA to use if I have CUDA 7.5 and 8 installed simultaneously. FindCUDA could do it. And say if version of cuda could be specified why not c++ 0x or 11... Ya

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-28 Thread Brian J. Davis
@Robert Adding CUDA to my PROJECT(4DRTProto CXX CUDA) Yields: CMake Error at C:/projects/4DRTProto/4DRTProto_3rdParty/platform/tools/cmake-3.9.0-rc6-win64-x64/share/cmake-3.9/Modules/CMakeTestCUDACompiler.cmake:45 (message): The CUDA compiler "C:/Program Files/NVIDIA GPU Computing

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-28 Thread Robert Maynard
> So how do I go about using it in 3.9? And more importantly does it work? > Does it generate hybrid CPP/CU projects that can be compiled in visual studio > the way FindCUDA (did/does?). It works and will generate hybrid C++ and CUDA projects. A very simple example of making a library and an

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-28 Thread Brian J. Davis
@Caleb I am asking how do I get it to work in post 3.8 or 3.9. Does it work. I know how it worked before CMake 3.2 and prior both on Linux and windows... ie ... it did not without considerable manual futzing due to NVIDIA's inability to put their goop in a standard location that they would

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-28 Thread Brian J. Davis
@Robert So how do I go about using it in 3.9? And more importantly does it work? Does it generate hybrid CPP/CU projects that can be compiled in visual studio the way FindCUDA (did/does?). Currently using FindCUDA, but I have had some CUDA 7.5 / 8.0 and VS 13/15 cats in a bag trouble.

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-28 Thread Christian Mazakas
I tried using VS solutions and MSBuild but building was still serialized. Ninja is just better for Windows. On Jul 28, 2017 9:06 AM, "Robert Maynard" wrote: > Just to clarify the CUDA and CMake situation. > > CMake 3.8 added the initial first class support of CUDA to

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-28 Thread Robert Maynard
Just to clarify the CUDA and CMake situation. CMake 3.8 added the initial first class support of CUDA to CMake ( instead of using FindCUDA ). This work only supports the makefile and ninja generators, which means that the visual studio IDE generator is not supported. This doesn't mean that the

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-27 Thread J. Caleb Wherry
Not sure I understand your question but Visual Studio support just lagged a version for that feature. It is available in CMake 3.9: https://cmake.org/cmake/help/v3.9/release/3.9.html Or are you asking before this version how was CUDA supported? -Caleb On Thu, Jul 27, 2017 at 9:07 PM Brian

Re: [CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-27 Thread Christian Mazakas
Probably means no more hacky MSBuild custom tasks which can't be parallelized. On Jul 27, 2017 6:07 PM, "Brian Davis" wrote: > > Can someone explain to me the meaning of the statement at: > > https://cmake.org/cmake/help/latest/release/3.8.html?highlight=cuda > > > Make

[CMake] CMake CUDA 3.8+/9 support as a first class language with out Visual Studio Support... err what?

2017-07-27 Thread Brian Davis
Can someone explain to me the meaning of the statement at: https://cmake.org/cmake/help/latest/release/3.8.html?highlight=cuda Make learned to support CUDA as a first-class language that can be enabled via the project() and enable_language() commands. CUDA is currently supported by the Makefile