Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: CUDA XCompiler
Replies: 1   Last Post: Nov 11, 2011 4:31 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Grischika@mail.ru

Posts: 23
Registered: 2/5/08
CUDA XCompiler
Posted: Oct 13, 2011 3:09 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello!
This is initialization code of CUDA:
Needs["CUDALink`"]
Needs["CCompilerDriver`"]
In[]:=CUDAQ[]
Out:=True

The command CUDADot[RandomInteger[1, {5, 5}], RandomInteger[1, {5,
5}]] works as it should.

But evaluation of
fun = CUDAFunctionLoad["__global__ void zero(int * in, int length) {
int index = threadIdx.x + blockIdx.x * blockDim.x;

if (index < length)
in[index] = 0;
}", "zero", {{_Integer}, _Integer}, {10}]
gives the error message:
CUDAFunctionLoad::invxpth: The "XCompilerInstallation" option set to
$Failed is not valid. "XCompilerInstallation" must be a string
pointing to the C compiler directory.

So it means that something wrong with C Compiler. All compilations
like Compile[... ,CompilationTarget->"C"] work.

Here information about the compiler . Microsoft Visual Studio 10.0
Ultimate.
In[]:=CCompilers[]
Out[]:={{"Name" -> "Visual Studio",
"Compiler" ->
CCompilerDriver`VisualStudioCompiler`VisualStudioCompiler,
"CompilerInstallation" ->
"C:\\Program Files\\Microsoft Visual Studio 10.0",
"CompilerName" -> Automatic}, {"Name" -> "NVIDIA CUDA Compiler",
"Compiler" -> NVCCCompiler,
"CompilerInstallation" ->
"C:\\Documents and Settings\\Grigory\\Application \
Data\\Mathematica\\Paclets\\Repository\\CUDAResources-Win-8.0.0.7\\\
CUDAToolkit\\bin\\", "CompilerName" -> Automatic}}

In[]:=CUDACCompilers[]
Out[]:={}

How to fix this compilation problem?




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.