Hi,
really good function...
would it be easy to modify it to have 3D drag of the axes limits instead of moving the axes object in the figure?
(like the 2D case)
Thank you
where can I find this fiel it is not in my computer cuda_mex.p ??
where can I found this one too
vcvarsamd64.bat I have "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe"
so it is not in bin where can I find it ?
Comment only
10 Apr 2012
CUDA MEX
Compile CUDA from within MATLAB!
Just write
cuda_mex filename.cu
and it is ready.
hello all
I can't get this right .
I triad ti fix what I found but some files wasn't in my Malab folder don't know what I should to do
this is the error
===================================
EDU>> setup_cuda_mex
??? Undefined function or variable 'setup_cuda_mex'.
Note that only Visual Studio compilers are supported.
Creating cudamexopts.bat based on mexopts.bat...
Creating cuda_mex.m based on mex.m...
Creating cuda_mex_helper.m based on mex_helper.m...
Adding current directory to path...
Warning: Unable to save path to file 'C:\Program Files (x86)\MATLAB\R2011a
Student\toolbox\local\pathdef.m'. You can save your path to a different
location by calling SAVEPATH with an input argument that specifies the
full path. For MATLAB to use that path in future sessions, save the path
to 'pathdef.m' in your MATLAB startup folder.
> In savepath at 162
In setup_cuda_mex at 118
Testing:
Compiling example.cu...
Can't open perl script "C:\Program Files (x86)\MATLAB\R2011a Student\bin\cuda_mex.pl": No such file or directory
??? Error using ==> cuda_mex at 208
Unable to complete successfully.
Error in ==> setup_cuda_mex at 123
cuda_mex example.cu
Can't open perl script "C:\Program Files (x86)\MATLAB\R2011a Student\bin\cuda_mex.pl": No such file or directory
??? Error using ==> cuda_mex at 208
Unable to complete successfully.
Can't open perl script "C:\Program Files (x86)\MATLAB\R2011a Student\bin\cuda_mex.pl": No such file or directory
??? Error using ==> cuda_mex at 208
Unable to complete successfully.
EDU>> cuda_mex simple.cu
Can't open perl script "C:\Program Files (x86)\MATLAB\R2011a Student\bin\cuda_mex.pl": No such file or directory
??? Error using ==> cuda_mex at 208
Unable to complete successfully.
EDU>>
===============
is it becase I'm using student version??why they don't just do the stepes clearly for the bigenear!!
========
this is whay I have
MATLAB Version (R2011a)
MATLAB License Number: STUDENT
OS Name Microsoft Windows 7 Home Premium
Version 6.1.7601 Service Pack 1 Build 7601
System Type x64-based PC
Thanks
Comment only
28 Nov 2011
CUDA MEX
Compile CUDA from within MATLAB!
Just write
cuda_mex filename.cu
and it is ready.
Hi,
I had some troubles when I used it on windows7(x64), Matlab R2011a(x64) and Visual C++ 2010 express with WinSDK7.1, but I could get over it. I had to add a slight modification to Eddie's advice. Thanks Haim and Eddie!!
Modify cuda_mex.pl modification as written above.
Add
$ARCH = "win64";
before the command (line 184)
$ENV{'ARCH'} = $ARCH;
Also, you need to comment out the entire block in the setup_cuda_mex.m titled as
%% Process mex.pl
to prevent further renewal of mex_cuda.pl
vcvarsamd64.bat should be created as written above. You have to slightly change it for use with VS2010Ex and SDK7.1.
Finally, you have to move the cudamexopts.bat to the C:\Users\(USER\AppData\Roaming\MathWorks\MATLAB.
Funny thing is that Matlab R2011a create an additional folder, named R2011a, in above folder and put cudamexopts.bat to the directory, which is not recognized by cuda_mex. So this caused the error message saying 'option file not found'. You just move it to the upper directory and things will go perfectly well.
5
17 Aug 2011
CUDA MEX
Compile CUDA from within MATLAB!
Just write
cuda_mex filename.cu
and it is ready.
San, this can happen when you don't have the 64-bit part of Visual Studio installed - check your installation of Visual Studio(Control Panel -> Modify Program) to see if the x64 part is installed (mine did not by default , so I had to update it).
Comment only
16 Aug 2011
CUDA MEX
Compile CUDA from within MATLAB!
Just write
cuda_mex filename.cu
and it is ready.
VISUAL STUDIO 2010 anybody?
Thanks Hakim for a nearly automatic solution. I'm still having some trouble. I'm running win64, Cuda 4.0 and Visual Studio 2010.
I tried the original solution and performed Eddie Kotowski's hack but to no avail.
I get the error:
Visual Studio configuration file '(null)' could not be found for installation at 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/../../..
Thanks!
SB
Comment only