Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 3.78 KB | None | 0 0
  1. >> gpuDevice
  2.  
  3. ans =
  4.  
  5.   CUDADevice with properties:
  6.  
  7.                       Name: 'GeForce 840M'
  8.                      Index: 1
  9.          ComputeCapability: '5.0'
  10.             SupportsDouble: 1
  11.              DriverVersion: 10
  12.             ToolkitVersion: 9
  13.         MaxThreadsPerBlock: 1024
  14.           MaxShmemPerBlock: 49152
  15.         MaxThreadBlockSize: [1024 1024 64]
  16.                MaxGridSize: [2.1475e+09 65535 65535]
  17.                  SIMDWidth: 32
  18.                TotalMemory: 2.1475e+09
  19.            AvailableMemory: 1.6946e+09
  20.        MultiprocessorCount: 3
  21.               ClockRateKHz: 1124000
  22.                ComputeMode: 'Default'
  23.       GPUOverlapsTransfers: 1
  24.     KernelExecutionTimeout: 1
  25.           CanMapHostMemory: 1
  26.            DeviceSupported: 1
  27.             DeviceSelected: 1
  28.  
  29. >> system('nvcc --version');
  30. nvcc: NVIDIA (R) Cuda compiler driver
  31. Copyright (c) 2005-2017 NVIDIA Corporation
  32. Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
  33. Cuda compilation tools, release 9.0, V9.0.176
  34.  
  35. >> mex -setup
  36. MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
  37. Warning: The MATLAB C and Fortran API has changed to support MATLAB
  38.      variables with more than 2^32-1 elements. You will be required
  39.      to update your code to utilize the new API.
  40.      You can find more information about this at:
  41.      https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
  42.  
  43. To choose a different language, select one from the following:
  44.  mex -setup C++
  45.  mex -setup FORTRAN
  46.  
  47. >> mex -setup C++
  48. MEX configured to use 'MinGW64 Compiler (C++)' for C++ language compilation.
  49. Warning: The MATLAB C and Fortran API has changed to support MATLAB
  50.      variables with more than 2^32-1 elements. You will be required
  51.      to update your code to utilize the new API.
  52.      You can find more information about this at:
  53.      https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
  54.  
  55. >> mex mexGPUExample.cu
  56. Error using mex
  57. No supported compiler was found. For options, visit
  58. https://www.mathworks.com/support/compilers.
  59.  
  60. >> mexcuda -v mexGPUExample.cu
  61. Warning: The selected C++ compiler is not supported for CUDA compilation. Searching
  62. for a supported compiler.
  63. > In mexcuda (line 89)
  64. Trying MEX options 'C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2015.xml'...FAILED
  65. Trying MEX options 'C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2017.xml'...FAILED
  66. Trying MEX options 'C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2013.xml'...FAILED
  67. Trying MEX options 'C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2012.xml'...FAILED
  68. Warning: No supported host compiler found, or other problem with the environment.
  69. Continuing with selected compiler to provide detailed diagnosis.
  70. > In mexcuda (line 130)
  71. mex -largeArrayDims -f C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\src\mex\win64\nvcc_msvcpp2015.xml NVCC_FLAGS="" -v mexGPUExample.cu
  72. Verbose mode is on.
  73. ... Looking for compiler 'NVIDIA CUDA Compiler' ...
  74. ... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
  75. ... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
  76. ... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
  77. ... Looking for registry setting 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7' 14.0 ...No.
  78. Did not find installed compiler 'NVIDIA CUDA Compiler'.
  79. Error using mex
  80. No supported compiler was found. For options, visit
  81. https://www.mathworks.com/support/compilers.
  82.  
  83. Error in mexcuda (line 157)
  84.     [varargout{1:nargout}] = mex(mexArguments{:});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement