Message Boards Message Boards

0
|
17458 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

CUDAFunctionLoad doesn't recognize TargetSystemID windows 8

Posted 10 years ago

I am getting an error from CUDAFunctionLoad that I don't know how to solve and am hoping for some quick help.

*CUDAFunctionLoad::target: "Target system specification \"TargetSystemID\" -> \!\(\"Windows-x86-64\"\) is not available for \!\(\"NVIDIA CUDA Compiler\"\) installation*"

I finally have CUDA working on my macbook where I am happily doing development (Mathematica 10). Now, I am using a home windows 8 desktop (with Mathematica 9) to see what kind of performance I can get from a better graphics card. But, I am stuck on the above error about TargetSystemID. I am a very inexperienced windows user....

I've installed the NVIDIA drivers and the Wolfram CUDA resources (CUDAQ[] is True).

The compilers and CUDASystemResources looks just like those in the documentation:

CUDAResourcesInformation[]

returns:

{{"Name" -> "CUDAResources", "Version" -> "9.0.6.0", 
  "BuildNumber" -> "", "Qualifier" -> "Win64", 
  "MathematicaVersion" -> "9.*", "SystemID" -> {"Windows-x86-64"}, 
  "Description" -> "{ToolkitVersion -> 6.0, MinimumDriver -> 270.0}", 
  "Category" -> "", "Creator" -> "", "Publisher" -> "", 
  "Support" -> "", "Internal" -> False, 
  "Location" -> 
   "C:\\Users\\martin\\AppData\\Roaming\\Mathematica\\Paclets\\\
Repository\\CUDAResources-Win64-9.0.6.0", "Context" -> {}, 
  "Enabled" -> True, "Loading" -> Manual, 
  "Hash" -> "59da201a3db7787ba8487310ddf6482e"}}

And

CUDACCompilers[]

returns

{{"Name" -> "Visual Studio", 
  "Compiler" -> 
   CCompilerDriver`VisualStudioCompiler`VisualStudioCompiler, 
  "CompilerInstallation" -> 
   "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0", 
  "CompilerName" -> Automatic}}

For the CCCompilers:

CCompilers[Full, "TargetSystemID" -> "Windows-x86-64"]

I get

{{"Name" -> "Visual Studio", 
  "Compiler" -> 
   CCompilerDriver`VisualStudioCompiler`VisualStudioCompiler, 
  "CompilerInstallation" -> 
   "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0", 
  "CompilerName" -> Automatic}, {"Name" -> "Intel Compiler", 
  "Compiler" -> CCompilerDriver`IntelCompiler`IntelCompiler, 
  "CompilerInstallation" -> None, 
  "CompilerName" -> Automatic}, {"Name" -> "Generic C Compiler", 
  "Compiler" -> CCompilerDriver`GenericCCompiler`GenericCCompiler, 
  "CompilerInstallation" -> None, "CompilerName" -> Automatic}}

The CUDA compiler doesn't show up as it does on my Mac, however nvcc.exe is in the CUDAToolkit\bin directory.

POSTED BY: W. Craig Carter
3 Replies
Posted 9 years ago

Luckily with the help of Google I found: [http://stackoverflow.com/questions/18727964/nvcc-exe-linking-error-microsoft-visual-studio-configuration-file-vcvars64-bat]

Microsoft Visual Studio Community 13 installs 2 compiler families in C:\Program Files (x86)\Microsoft Visual Studio 11.0 and C:\Program Files (x86)\Microsoft Visual Studio 12.0 Mathematica finds the first one, but it does not find the correct compiler folder. So you copy the folder with all its content C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_amd64 into the new folder C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64 And then copy in this new folder vcvarsx86_amd64.bat to vcvars64.bat I had to make this batch file work fine by adding two lines with @set commands:

@set "VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\"
@if "%VS110COMNTOOLS%"=="" goto error_no_VS110COMNTOOLSDIR
...
@set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC"
@if "%VSINSTALLDIR%"=="" goto error_no_VSINSTALLDIR

And then Mathematica 10.0.2 is able to compile CUDA kernels. If you get a warning that mspdb110.dll can not be found by running the batch file, then just copy this file from C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\mspdb110.dll to C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\mspdb110.dll

POSTED BY: Bert Aerts
Posted 9 years ago

I have Mathematica 10.0.2 on Windows 8.1 64 bit. I installed Microsoft Visual Studio Community 2013. I installed CUDA toolkit from nVIDIA cuda7.0.28windows.exe. I installed CUDAResources-Win64-10.0.0.1.paclet. I have the latest nVIDIA driver 353.30.

CUDA in Mathematica like CUDAFluidDynamics works fine.

But compiling a CUDA kernel does not work. I get exactly the same error message on CUDAFunctionLoad as shown here in the first post. What I find strange is that CUDACCompilers[] gives

{{"Name" -> "Visual Studio", 
  "Compiler" -> 
   CCompilerDriver`VisualStudioCompiler`VisualStudioCompiler, 
  "CompilerInstallation" -> 
   "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0", 
  "CompilerName" -> Automatic}}

Which shows version 11, while I also have version 12 !? Can I force version 12 ?

POSTED BY: Bert Aerts

CUDALink in M9 does not support VS2013 . I either suggest installing an earlier version of VS or upgrading to M10.

POSTED BY: Abdul Dakkak
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract