Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> gpuDevice
- ans =
- CUDADevice with properties:
- Name: 'GeForce 840M'
- Index: 1
- ComputeCapability: '5.0'
- SupportsDouble: 1
- DriverVersion: 10
- ToolkitVersion: 9
- MaxThreadsPerBlock: 1024
- MaxShmemPerBlock: 49152
- MaxThreadBlockSize: [1024 1024 64]
- MaxGridSize: [2.1475e+09 65535 65535]
- SIMDWidth: 32
- TotalMemory: 2.1475e+09
- AvailableMemory: 1.6946e+09
- MultiprocessorCount: 3
- ClockRateKHz: 1124000
- ComputeMode: 'Default'
- GPUOverlapsTransfers: 1
- KernelExecutionTimeout: 1
- CanMapHostMemory: 1
- DeviceSupported: 1
- DeviceSelected: 1
- >> system('nvcc --version');
- nvcc: NVIDIA (R) Cuda compiler driver
- Copyright (c) 2005-2017 NVIDIA Corporation
- Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
- Cuda compilation tools, release 9.0, V9.0.176
- >> mex -setup
- MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
- Warning: The MATLAB C and Fortran API has changed to support MATLAB
- variables with more than 2^32-1 elements. You will be required
- to update your code to utilize the new API.
- You can find more information about this at:
- https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
- To choose a different language, select one from the following:
- mex -setup C++
- mex -setup FORTRAN
- >> mex -setup C++
- MEX configured to use 'MinGW64 Compiler (C++)' for C++ language compilation.
- Warning: The MATLAB C and Fortran API has changed to support MATLAB
- variables with more than 2^32-1 elements. You will be required
- to update your code to utilize the new API.
- You can find more information about this at:
- https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
- >> mex mexGPUExample.cu
- Error using mex
- No supported compiler was found. For options, visit
- https://www.mathworks.com/support/compilers.
- >> mexcuda -v mexGPUExample.cu
- Warning: The selected C++ compiler is not supported for CUDA compilation. Searching
- for a supported compiler.
- > In mexcuda (line 89)
- Trying MEX options 'C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2015.xml'...FAILED
- Trying MEX options 'C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2017.xml'...FAILED
- Trying MEX options 'C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2013.xml'...FAILED
- Trying MEX options 'C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2012.xml'...FAILED
- Warning: No supported host compiler found, or other problem with the environment.
- Continuing with selected compiler to provide detailed diagnosis.
- > In mexcuda (line 130)
- mex -largeArrayDims -f C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2015.xml NVCC_FLAGS="" -v mexGPUExample.cu
- Verbose mode is on.
- ... Looking for compiler 'NVIDIA CUDA Compiler' ...
- ... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
- ... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
- ... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
- ... Looking for registry setting 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
- Did not find installed compiler 'NVIDIA CUDA Compiler'.
- Error using mex
- No supported compiler was found. For options, visit
- https://www.mathworks.com/support/compilers.
- Error in mexcuda (line 157)
- [varargout{1:nargout}] = mex(mexArguments{:});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement