[opencurrent-users] Windows 7 64-bit build failure

47 views
Skip to first unread message

sklesser

unread,
May 19, 2010, 7:19:48 AM5/19/10
to opencurrent-users
I was hoping to use OpenCurrent for a school project with Stanford's
CS 193G course on programming CUDA but I'm having trouble building the
project for my system- Windows 7 64-bit Home Premium.

I ran CMake and generated the visual studio solution, but when I try
building the solution I get errors complaining about nvcc not finding
a supported cl version. I'm fully able to run the CUDA visual studio
examples from the GPU SDK and have even written some of my own Visual
Studio CUDA projects so I know my CUDA and Visual Studio versions are
compatible. I was wondering if anyone had any ideas on how to fix this
or get around this.

Note: I was never able to actually get NetCDF to fully work on this
system so I went through all the CMake files and commented out
anything referencing NetCDF and any tests which use NetCDF and was
able to run CMake to generate the visual studio solution.

Here's the build output of the ALL_BUILD project:

1>------ Build started: Project: ocustorage, Configuration: Debug x64
------
2>------ Build started: Project: ocuequation, Configuration: Debug x64
------
3>------ Build started: Project: cubicrayleigh, Configuration: Debug
x64 ------
4>------ Build started: Project: ocuutil, Configuration: Debug x64
------
5>------ Build started: Project: utest, Configuration: Debug x64
------
1>Building NVCC (Device) object ocustorage/Debug/
ocustorage_generated_grid1ddev.cu.obj
4>Building NVCC (Device) object ocuutil/Debug/
ocuutil_generated_timer.cu.obj
3>Building NVCC (Device) object apps/Debug/
cubicrayleigh_generated_eqn_cubicrayleigh3d.cu.obj
2>Building NVCC (Device) object ocuequation/Debug/
ocuequation_generated_solver.cu.obj
5>Building NVCC (Device) object tests/Debug/
utest_generated_utest.cu.obj
3>nvcc fatal : nvcc cannot find a supported cl version. Only MSVC
8.0 and MSVC 9.0 are supported
3>CMake Error at
cubicrayleigh_generated_eqn_cubicrayleigh3d.cu.obj.cmake:147
(message):
3> Error generating
3> C:/Users/steve/Downloads/opencurrent-1.0.0/opencurrent-1.0.0/msvc-
sm13/apps/Debug/cubicrayleigh_generated_eqn_cubicrayleigh3d.cu.obj
1>nvcc fatal : nvcc cannot find a supported cl version. Only MSVC
8.0 and MSVC 9.0 are supported
1>CMake Error at ocustorage_generated_grid1ddev.cu.obj.cmake:147
(message):
1> Error generating
1> C:/Users/steve/Downloads/opencurrent-1.0.0/opencurrent-1.0.0/msvc-
sm13/ocustorage/Debug/ocustorage_generated_grid1ddev.cu.obj
1>Project : error PRJ0019: A tool returned an error code from
"Building NVCC (Device) object ocustorage/Debug/
ocustorage_generated_grid1ddev.cu.obj"
2>nvcc fatal : nvcc cannot find a supported cl version. Only MSVC
8.0 and MSVC 9.0 are supported
5>nvcc fatal : nvcc cannot find a supported cl version. Only MSVC
8.0 and MSVC 9.0 are supported
3>Project : error PRJ0019: A tool returned an error code from
"Building NVCC (Device) object apps/Debug/
cubicrayleigh_generated_eqn_cubicrayleigh3d.cu.obj"
4>nvcc fatal : nvcc cannot find a supported cl version. Only MSVC
8.0 and MSVC 9.0 are supported
3>Build log was saved at "file://c:\Users\steve\Downloads
\opencurrent-1.0.0\opencurrent-1.0.0\msvc-sm13\apps\cubicrayleigh.dir
\Debug\BuildLog.htm"
1>Build log was saved at "file://c:\Users\steve\Downloads
\opencurrent-1.0.0\opencurrent-1.0.0\msvc-sm13\ocustorage
\ocustorage.dir\Debug\BuildLog.htm"
1>ocustorage - 1 error(s), 0 warning(s)
3>cubicrayleigh - 1 error(s), 0 warning(s)
4>CMake Error at ocuutil_generated_timer.cu.obj.cmake:147 (message):
5>CMake Error at utest_generated_utest.cu.obj.cmake:147 (message):
2>CMake Error at ocuequation_generated_solver.cu.obj.cmake:147
(message):
2> Error generating
5> Error generating
4> Error generating
4> C:/Users/steve/Downloads/opencurrent-1.0.0/opencurrent-1.0.0/msvc-
sm13/ocuutil/Debug/ocuutil_generated_timer.cu.obj
2> C:/Users/steve/Downloads/opencurrent-1.0.0/opencurrent-1.0.0/msvc-
sm13/ocuequation/Debug/ocuequation_generated_solver.cu.obj
5> C:/Users/steve/Downloads/opencurrent-1.0.0/opencurrent-1.0.0/msvc-
sm13/tests/Debug/utest_generated_utest.cu.obj
4>Project : error PRJ0019: A tool returned an error code from
"Building NVCC (Device) object ocuutil/Debug/
ocuutil_generated_timer.cu.obj"
2>Project : error PRJ0019: A tool returned an error code from
"Building NVCC (Device) object ocuequation/Debug/
ocuequation_generated_solver.cu.obj"
5>Project : error PRJ0019: A tool returned an error code from
"Building NVCC (Device) object tests/Debug/
utest_generated_utest.cu.obj"
4>Build log was saved at "file://c:\Users\steve\Downloads
\opencurrent-1.0.0\opencurrent-1.0.0\msvc-sm13\ocuutil\ocuutil.dir
\Debug\BuildLog.htm"
5>Build log was saved at "file://c:\Users\steve\Downloads
\opencurrent-1.0.0\opencurrent-1.0.0\msvc-sm13\tests\utest.dir\Debug
\BuildLog.htm"
2>Build log was saved at "file://c:\Users\steve\Downloads
\opencurrent-1.0.0\opencurrent-1.0.0\msvc-sm13\ocuequation
\ocuequation.dir\Debug\BuildLog.htm"
4>ocuutil - 1 error(s), 0 warning(s)
5>utest - 1 error(s), 0 warning(s)
2>ocuequation - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 5 failed, 2 up-to-date, 0 skipped
==========

sklesser

unread,
May 19, 2010, 5:06:03 PM5/19/10
to opencurrent-users
OK, I fixed the problem, it turns out the Visual Studio environment
was not being set anywhere so there was no way to find the Visual
Studio compiler. To get through this I temporarily added the line

compiler-bindir = C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
\bin

to the end of nvcc.profile in my CUDA\bin64 folder. There were a few
path issues that had to be fixed up as well, but afterwards I was
successfully able to run all the tests that did not involve NetCDF on
my machine (Win7 64-bit, Visual Studio 2008) which is great!
Reply all
Reply to author
Forward
0 new messages