Working: nvmex,vista64,VS2008 express,cuda 2.2
  1 / 2    
The following configuration is working for vista 64-bit, VS2008 express, nvmex, and matlab 2008b.

Visual Studio 2008 express and Windows SDK (v6.1) are installed at default locations. The SDK installs the 64-bit compilers etc. This seems to be the default on 64-bit systems.

This will generate mexw64 files.

The required files are

[attachment=9471:nvmex.pl.txt]
[attachment=9472:nvmexopts_9.bat.txt]
[attachment=9473:vcvarsamd64.bat.txt]

nvmex.pl and vcvarsamd64.bat are files others have contributed.
nvmexopts_9.bat is a modified file of a contributed file.

vcvarsamd64.bat must go in:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat

or you will get the error:

nvcc fatal : Visual Studio configuration file '(null)' could not be found....

The modified nvmexopts_9.bat gives paths only to the 64-bit libraries. If the 32-bit libraries are found first on the the LIB path, you will get unresolved symbol errors.
The following configuration is working for vista 64-bit, VS2008 express, nvmex, and matlab 2008b.



Visual Studio 2008 express and Windows SDK (v6.1) are installed at default locations. The SDK installs the 64-bit compilers etc. This seems to be the default on 64-bit systems.



This will generate mexw64 files.



The required files are



[attachment=9471:nvmex.pl.txt]

[attachment=9472:nvmexopts_9.bat.txt]

[attachment=9473:vcvarsamd64.bat.txt]



nvmex.pl and vcvarsamd64.bat are files others have contributed.

nvmexopts_9.bat is a modified file of a contributed file.



vcvarsamd64.bat must go in:



C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat



or you will get the error:



nvcc fatal : Visual Studio configuration file '(null)' could not be found....



The modified nvmexopts_9.bat gives paths only to the 64-bit libraries. If the 32-bit libraries are found first on the the LIB path, you will get unresolved symbol errors.

#1
Posted 06/01/2009 10:01 PM   
:rolleyes: I don't know how to thank you !
I had the good nvmex.pl and nvmexopts.bat but not the vcvarsamd64.bat and had always the error : nvcc fatal : Visual Studio configuration file '(null)' could not be found ...
Thanks /thumbup.gif' class='bbc_emoticon' alt=':thumbup:' />
:rolleyes: I don't know how to thank you !

I had the good nvmex.pl and nvmexopts.bat but not the vcvarsamd64.bat and had always the error : nvcc fatal : Visual Studio configuration file '(null)' could not be found ...

Thanks /thumbup.gif' class='bbc_emoticon' alt=':thumbup:' />

#2
Posted 06/18/2009 02:31 PM   
Nice. Thanks. But I hope you can help me with one thing. When I try to compile it with nvmex, I get this error:

>> nvmex -f nvmexopts.bat cudaKernel.cu -lcufft
abdelali target arch: win64
Warning: cufft specified with -l option not found on -L path
cudaKernel.cu
tmpxft_00000b64_00000000-3_cudaKernel.cudafe1.gpu
tmpxft_00000b64_00000000-8_cudaKernel.cudafe2.gpu
tmpxft_00000b64_00000000-3_cudaKernel.cudafe1.cpp
Microsoft ® Incremental Linker Version 9.00.21022.08
Copyright © Microsoft Corporation. All rights reserved.

cudaKernel.obj
LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'

C:\PROGRA~1\MATLAB\R2008A\BIN\NVMEX.PL: Error: Link of 'cudaKernel.mexw64' failed.

??? Error using ==> nvmex at 206
Unable to complete successfully.

I realy hope you can help me with this problem. Searched after a solution on google, but found nothing.
Nice. Thanks. But I hope you can help me with one thing. When I try to compile it with nvmex, I get this error:



>> nvmex -f nvmexopts.bat cudaKernel.cu -lcufft

abdelali target arch: win64

Warning: cufft specified with -l option not found on -L path

cudaKernel.cu

tmpxft_00000b64_00000000-3_cudaKernel.cudafe1.gpu

tmpxft_00000b64_00000000-8_cudaKernel.cudafe2.gpu

tmpxft_00000b64_00000000-3_cudaKernel.cudafe1.cpp

Microsoft ® Incremental Linker Version 9.00.21022.08

Copyright © Microsoft Corporation. All rights reserved.



cudaKernel.obj

LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'



C:\PROGRA~1\MATLAB\R2008A\BIN\NVMEX.PL: Error: Link of 'cudaKernel.mexw64' failed.



??? Error using ==> nvmex at 206

Unable to complete successfully.



I realy hope you can help me with this problem. Searched after a solution on google, but found nothing.

#3
Posted 06/19/2009 09:37 AM   
[quote name='klidke' post='547626' date='Jun 1 2009, 05:01 PM']The following configuration is working for vista 64-bit, VS2008 express, nvmex, and matlab 2008b.

Visual Studio 2008 express and Windows SDK (v6.1) are installed at default locations. The SDK installs the 64-bit compilers etc. This seems to be the default on 64-bit systems.

This will generate mexw64 files.

The required files are

[attachment=12238:nvmex.pl.txt]
[attachment=12239:nvmexopts_9.bat.txt]
[attachment=12240:vcvarsamd64.bat.txt]

nvmex.pl and vcvarsamd64.bat are files others have contributed.
nvmexopts_9.bat is a modified file of a contributed file.

vcvarsamd64.bat must go in:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat

or you will get the error:

nvcc fatal : Visual Studio configuration file '(null)' could not be found....

The modified nvmexopts_9.bat gives paths only to the 64-bit libraries. If the 32-bit libraries are found first on the the LIB path, you will get unresolved symbol errors.[/quote]
[quote name='klidke' post='547626' date='Jun 1 2009, 05:01 PM']The following configuration is working for vista 64-bit, VS2008 express, nvmex, and matlab 2008b.



Visual Studio 2008 express and Windows SDK (v6.1) are installed at default locations. The SDK installs the 64-bit compilers etc. This seems to be the default on 64-bit systems.



This will generate mexw64 files.



The required files are



[attachment=12238:nvmex.pl.txt]

[attachment=12239:nvmexopts_9.bat.txt]

[attachment=12240:vcvarsamd64.bat.txt]



nvmex.pl and vcvarsamd64.bat are files others have contributed.

nvmexopts_9.bat is a modified file of a contributed file.



vcvarsamd64.bat must go in:



C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat



or you will get the error:



nvcc fatal : Visual Studio configuration file '(null)' could not be found....



The modified nvmexopts_9.bat gives paths only to the 64-bit libraries. If the 32-bit libraries are found first on the the LIB path, you will get unresolved symbol errors.

#4
Posted 09/21/2009 02:09 AM   
Help! I could not download those attachments from the topic. If any one could download them, could you please email them to me? Thx. I use VS 2008 Professional, MAtlab 2009a and CUDA 2.2 on Windows 7 64-bit Quadro FX 770m and Quadro FX 1700.
Help! I could not download those attachments from the topic. If any one could download them, could you please email them to me? Thx. I use VS 2008 Professional, MAtlab 2009a and CUDA 2.2 on Windows 7 64-bit Quadro FX 770m and Quadro FX 1700.

#5
Posted 09/21/2009 02:25 AM   
Windows Xp x64, Matlab 2009b ("a" also), VS 2008 SP1, Windows SDK v.6.1, CUDA 2.2 give the following:

nvmex -f nvmexopts.bat alg.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart

abdelali target arch: win64
alg.cu
tmpxft_00000d64_00000000-3_alg.cudafe1.gpu
c:\cuda\include\texture_fetch_functions.h(71): error: expected a file name

c:\cuda\include\texture_fetch_functions.h(73): error: expected a file name

c:\cuda\include\texture_fetch_functions.h(75): error: expected a file name

c:\cuda\include\texture_fetch_functions.h(77): error: expected a file name

c:\cuda\include\texture_fetch_functions.h(79): error: expected a file name
.....
(a lot of errors)
......

Error limit reached.
100 errors detected in the compilation of "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/tmpxft_00000d64_00000000-7_alg.cpp2.i".
Compilation terminated.

C:\PROGRA~1\MATLAB\R2009B\BIN\NVMEX.PL: Error: Compile of 'alg.cu' failed.

??? Error using ==> nvmex at 206
Unable to complete successfully.

I have also tried to use nvmex and nvmexopts posted here:
[u]http://forums.nvidia.com/index.php?showtopic=67538[/u] (#13)
Results are the same.
Does anybody have a solution or maybe prompts?
Windows Xp x64, Matlab 2009b ("a" also), VS 2008 SP1, Windows SDK v.6.1, CUDA 2.2 give the following:



nvmex -f nvmexopts.bat alg.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart



abdelali target arch: win64

alg.cu

tmpxft_00000d64_00000000-3_alg.cudafe1.gpu

c:\cuda\include\texture_fetch_functions.h(71): error: expected a file name



c:\cuda\include\texture_fetch_functions.h(73): error: expected a file name



c:\cuda\include\texture_fetch_functions.h(75): error: expected a file name



c:\cuda\include\texture_fetch_functions.h(77): error: expected a file name



c:\cuda\include\texture_fetch_functions.h(79): error: expected a file name

.....

(a lot of errors)

......



Error limit reached.

100 errors detected in the compilation of "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/tmpxft_00000d64_00000000-7_alg.cpp2.i".

Compilation terminated.



C:\PROGRA~1\MATLAB\R2009B\BIN\NVMEX.PL: Error: Compile of 'alg.cu' failed.



??? Error using ==> nvmex at 206

Unable to complete successfully.



I have also tried to use nvmex and nvmexopts posted here:

http://forums.nvidia.com/index.php?showtopic=67538 (#13)

Results are the same.

Does anybody have a solution or maybe prompts?

#6
Posted 10/02/2009 07:35 AM   
Finally! Solution of my problem is all pathes must contain ONLY english letters (including path to your matlab plugin folder)
Finally! Solution of my problem is all pathes must contain ONLY english letters (including path to your matlab plugin folder)

#7
Posted 10/14/2009 07:36 PM   
[quote name='VasRoG' post='600952' date='Oct 15 2009, 01:36 AM']Finally! Solution of my problem is all pathes must contain ONLY english letters (including path to your matlab plugin folder)[/quote]

The paths are already only in english. Could you be more precise as to what solved your problem? Am getting the same problem and my configuration is: Win7 64bit, Matlab R2009a, VS2008
[quote name='VasRoG' post='600952' date='Oct 15 2009, 01:36 AM']Finally! Solution of my problem is all pathes must contain ONLY english letters (including path to your matlab plugin folder)



The paths are already only in english. Could you be more precise as to what solved your problem? Am getting the same problem and my configuration is: Win7 64bit, Matlab R2009a, VS2008

Best,

Salman Ul Haq,

TunaCode Pvt. Limited

Developers of GPU based Computing solutions

(CUDA for Vision and Imaging Library)

W: www.cuvilib.com

E: salman@tunacode.com



GPU: NVIDIA Tesla C2050

CPU: Core2Duo 2.33GHz 2.5GB DDR2 RAM

CUDA Toolkit v4.0RC

#8
Posted 11/17/2009 02:46 PM   
@klidke: Am really thankful it actually worked out!
@klidke: Am really thankful it actually worked out!

Best,

Salman Ul Haq,

TunaCode Pvt. Limited

Developers of GPU based Computing solutions

(CUDA for Vision and Imaging Library)

W: www.cuvilib.com

E: salman@tunacode.com



GPU: NVIDIA Tesla C2050

CPU: Core2Duo 2.33GHz 2.5GB DDR2 RAM

CUDA Toolkit v4.0RC

#9
Posted 11/17/2009 03:12 PM   
Likewise! You rock mate. Got it working on Win7 64, VS2008 9.0 Express with 64bit SDK 7.0 after a mere 4 hours (was bloody using C:\CUDA\lib instead of C:\CUDA\lib64 arrh). So far it's slower than the PC though with the Szeta example, though the PC is pretty new.
Likewise! You rock mate. Got it working on Win7 64, VS2008 9.0 Express with 64bit SDK 7.0 after a mere 4 hours (was bloody using C:\CUDA\lib instead of C:\CUDA\lib64 arrh). So far it's slower than the PC though with the Szeta example, though the PC is pretty new.

#10
Posted 12/23/2009 08:39 AM   
How could I get this working if I am on a 64-bit system (Windows XP x64 Pro) but still using Matlab 2008b 32-bit? /ermm.gif' class='bbc_emoticon' alt=':ermm:' />

I have Cuda 2.2 and VS2008 Express.

I've searched everywhere and it doesn't seem like anyone is using my setup.

(Unfortunately, I am forced to use Matlab 32-bit... Mathworks is still not able to provide a 64-bit version of the Excel add-in compiler... /verymad.gif' class='bbc_emoticon' alt=':verymad:' /> )

Thanks guys
How could I get this working if I am on a 64-bit system (Windows XP x64 Pro) but still using Matlab 2008b 32-bit? /ermm.gif' class='bbc_emoticon' alt=':ermm:' />



I have Cuda 2.2 and VS2008 Express.



I've searched everywhere and it doesn't seem like anyone is using my setup.



(Unfortunately, I am forced to use Matlab 32-bit... Mathworks is still not able to provide a 64-bit version of the Excel add-in compiler... /verymad.gif' class='bbc_emoticon' alt=':verymad:' /> )



Thanks guys

#11
Posted 01/19/2010 08:39 AM   
Big thanks for help.

I've meet same problem ie.
> nvcc fatal : Visual Studio configuration file '(null)' could not be found for installation
configuration: Windows 7 64 bit, CUDA 2.3 and Visual Studio Express 2008, SDK v7.0

Proposed solution can be simplified by empty file vcvarsamd64.bat. This is also working fine.

Regards,
Michal
Big thanks for help.



I've meet same problem ie.

> nvcc fatal : Visual Studio configuration file '(null)' could not be found for installation

configuration: Windows 7 64 bit, CUDA 2.3 and Visual Studio Express 2008, SDK v7.0



Proposed solution can be simplified by empty file vcvarsamd64.bat. This is also working fine.



Regards,

Michal

#12
Posted 01/30/2010 08:03 PM   
Thanks for the files. It seems to work now.

I made a guide to help people still strugling to get it to work.

I used windows 7 64bit and Matlab r2010A 64bit and CUDA 3.1.

Guide + files are attached to this post.

Note that I did not create these files. I just took them from the original post. Please let me know if there are serious errors in this guide.
Thanks for the files. It seems to work now.



I made a guide to help people still strugling to get it to work.



I used windows 7 64bit and Matlab r2010A 64bit and CUDA 3.1.



Guide + files are attached to this post.



Note that I did not create these files. I just took them from the original post. Please let me know if there are serious errors in this guide.

#13
Posted 07/25/2010 11:17 PM   
[quote name='Joenz' date='26 July 2010 - 01:17 AM' timestamp='1280099864' post='1093482']

Note that I did not create these files. I just took them from the original post. Please let me know if there are serious errors in this guide.
[/quote]

Thanks!
This short tut got it finally working on my system
(Win7SP1 x64, Matlab 2008b 64bit, Cudatoolkit 3.2,Microsoft Visual Studio 2008 Express (2010 also installed),Microsoft SDKs v7.0A).
With some small modifications necessary:
[indent]set SDKDIR=C:\Program Files\Microsoft SDKs\Windows\v7.0 (using the 32BitPath gave me akernel32.lib error)
nvmex -f nvmexopts.bat example.cu -IC:\cuda\include -LC:\cuda\lib\x64 -lcudart -lcufft (guess cause i use 3.2 not 3.1)[/indent]
Maybe you should add Microsoft SDK with option "redistributable..." checked to required software.

Thanks again and please dont care my spelling its late at night spellcheck doesnt work and im german

Jan
[quote name='Joenz' date='26 July 2010 - 01:17 AM' timestamp='1280099864' post='1093482']



Note that I did not create these files. I just took them from the original post. Please let me know if there are serious errors in this guide.





Thanks!

This short tut got it finally working on my system

(Win7SP1 x64, Matlab 2008b 64bit, Cudatoolkit 3.2,Microsoft Visual Studio 2008 Express (2010 also installed),Microsoft SDKs v7.0A).

With some small modifications necessary:

[indent]set SDKDIR=C:\Program Files\Microsoft SDKs\Windows\v7.0 (using the 32BitPath gave me akernel32.lib error)

nvmex -f nvmexopts.bat example.cu -IC:\cuda\include -LC:\cuda\lib\x64 -lcudart -lcufft (guess cause i use 3.2 not 3.1)[/indent]

Maybe you should add Microsoft SDK with option "redistributable..." checked to required software.



Thanks again and please dont care my spelling its late at night spellcheck doesnt work and im german



Jan

#14
Posted 03/15/2011 02:25 AM   
Hi All,

Many thanks for putting together this collection of files. Unfortunately, I have a small problem compiling the example.cu for my configuration:

Win Vista 64bit
Matlab 2007b
Cuda 2.2
VS2008 express

When I try to compile:

"nvmex -f nvmexopts.bat example.cu -IC:\cuda\include -LC:\cuda\lib -lcudart -lcufft"

I get the error:

"Can't locate File/Temp.pm in @INC (@INC contains: C:/Program Files/MATLAB/R2007b/sys/perl/win32/lib C:/Program Files/MATLAB/R2007b/sys/perl/win32/site/lib .) at C:\Program Files\MATLAB\R2007b\bin\nvmex.pl line 126.
BEGIN failed--compilation aborted at C:\Program Files\MATLAB\R2007b\bin\nvmex.pl line 126.
??? Error using ==> nvmex at 206
Unable to complete successfully.

Error in ==> example_test_compile1 at 1
nvmex -f nvmexopts.bat example.cu -IC:\cuda\include -LC:\cuda\lib -lcudart -lcufft"

(Note that Cuda 2.2 64-bit install seems to only have a \lib directory, which I assume contains 64bit libraries)

After sniffing around, I guess the problem is related to the version of Perl installed with Matlab 2007b.
In 'C:\Program Files\MATLAB\R2007b\sys\perl\win32\bin' it appears I have perl5.00503.

Line 126 of nvmex.pl (where the crash seems to arise) is:
"use File::Temp qw/ tempdir/;"

To be honest, I don't know why this fails, but there is indeed no existing file in the @INC path (see the error text above) called "Temp.pm".

Do I just have to install a newer version of Perl in the Matlab sys directory?
I would just go ahead and try this, but the forums I found on updating Matlab's Perl - e.g. http://community.activestate.com/forum/how-update-matlab-activeperl - make me a little hesitant, unless someone tells me this will fix the problem.

Many thanks for any advice.
MT
Hi All,



Many thanks for putting together this collection of files. Unfortunately, I have a small problem compiling the example.cu for my configuration:



Win Vista 64bit

Matlab 2007b

Cuda 2.2

VS2008 express



When I try to compile:



"nvmex -f nvmexopts.bat example.cu -IC:\cuda\include -LC:\cuda\lib -lcudart -lcufft"



I get the error:



"Can't locate File/Temp.pm in @INC (@INC contains: C:/Program Files/MATLAB/R2007b/sys/perl/win32/lib C:/Program Files/MATLAB/R2007b/sys/perl/win32/site/lib .) at C:\Program Files\MATLAB\R2007b\bin\nvmex.pl line 126.

BEGIN failed--compilation aborted at C:\Program Files\MATLAB\R2007b\bin\nvmex.pl line 126.

??? Error using ==> nvmex at 206

Unable to complete successfully.



Error in ==> example_test_compile1 at 1

nvmex -f nvmexopts.bat example.cu -IC:\cuda\include -LC:\cuda\lib -lcudart -lcufft"



(Note that Cuda 2.2 64-bit install seems to only have a \lib directory, which I assume contains 64bit libraries)



After sniffing around, I guess the problem is related to the version of Perl installed with Matlab 2007b.

In 'C:\Program Files\MATLAB\R2007b\sys\perl\win32\bin' it appears I have perl5.00503.



Line 126 of nvmex.pl (where the crash seems to arise) is:

"use File::Temp qw/ tempdir/;"



To be honest, I don't know why this fails, but there is indeed no existing file in the @INC path (see the error text above) called "Temp.pm".



Do I just have to install a newer version of Perl in the Matlab sys directory?

I would just go ahead and try this, but the forums I found on updating Matlab's Perl - e.g. http://community.activestate.com/forum/how-update-matlab-activeperl - make me a little hesitant, unless someone tells me this will fix the problem.



Many thanks for any advice.

MT

#15
Posted 06/05/2011 11:52 AM   
  1 / 2    
Scroll To Top