Finding c compiler from mathematica
C compilers and mathematica.
Hi, I want to use the CUDA functionality in mathematica. However, it requires a working c compiler. I am usually a unix person but i have a windows copy of mathematica. I tried isntalling visual studio express and miniGW (some sort of gcc to windows port). But now when i start mathematica and do a CCompiler[] after having loaded CCompilerDriver and CUDALink with Needs, I get an empty list of compilers. Is there something hidden somewhere I need to set to make mathematica discover these compielrs. I am totally lost with this windows environme开发者_运维问答nt.
I find no mention of this on wolframs website, in all their examples visual studio is allways there and working already.
Oh yeah, my mathematica is version 8.
Both were detected automatically on my system, so I'm not sure what's wrong on yours.
You can look at the files in AddOns\Applications\CCompilerDriver
and see how the different compilers are detected. Search for ResolveInstallation
in these files.
Based what I found in those files, some things you can try are:
- Put MinGW into
c:\mingw
. - Make sure the VS Express is correctly installed and the environment variable
VS100COMNTOOLS
orVS90COMNTOOLS
is set.
I realized I am good for premium support, and they informed me there the fact that I have not found anywhere in the documentation, which is, that the only working 64 bit compiler for cuda under windows is visual studio 2005 and 2008. They are working on support for 2010, but as of the time of writing it isn't working with CUDALink. (o i wish i could go back to working with unix)
when installing 2005 or 2008 follow the instructions at http://reference.wolfram.com/mathematica/CCompilerDriver/tutorial/SpecificCompilers.html
you might actually have to downgrade some framework to get it running.
I was haltedi n doing this because my glorious cuda-card broke in the process (sic), so having to wait for it to be fixed before I can get any further,
精彩评论