This is a repeat from an earlier post [url=]http://community.wolfram.com/groups/-/m/t/24562 . I am posting as a separate discussion for the benefit of CUDA programers and any other paraller processing interest.
After a long trial and error, I was able to solve the problem of CUDA installation on Mathematica 9. This solves most installation problems.
- Remove CUDA and the driver.
- Download and install Visual Studio 2010 or 2012 with the C/C++ compiler. From my test on VS 2013, The Mathematica did not recognized the C compiller.
- Do the CUDA installation. It is very important that you follow up the instructions. Follow up that CUDA detects Visual Studio from your system. Make sure that Visual Studio and C compiller are installed BEFORE the CUDA installation. Otherwise will not work , because the CUDA will not not properlly register its path to the VC compiler.
- Needs["CUDALink`"];
- CUDAQ[] ; if the compiler returns "True " you are half way there and in good track. If "false", Startup Visual studio and make sure you have the C++ active. Run a sample C code just in case.
- Enter Needs["SymbolicC`"] ; Do not ignore this step.
- CUDAResourcesInstall[Update -> True];
For some reason, the Mathematica installation of CUDA does not provide the latest libraries. This command will force to download all current updates.
Here is the hold thing
Needs["CUDALink`"]
CUDAQ[]
Needs["SymbolicC`"]
CUDAResourcesInstall[Update -> True]