The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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

This is initialization code of CUDA:

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
Out[]:={{"Name" -> "Visual Studio",
"Compiler" ->
"CompilerInstallation" ->
"C:\\Program Files\\Microsoft Visual Studio 10.0",
"CompilerName" -> Automatic}, {"Name" -> "NVIDIA CUDA Compiler",
"Compiler" -> NVCCCompiler,
"CompilerInstallation" ->
"C:\\Documents and Settings\\Grigory\\Application \
CUDAToolkit\\bin\\", "CompilerName" -> Automatic}}


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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.