How can I find the path specified?
조회 수: 7 (최근 30일)
이전 댓글 표시
Hello,
When I tried to execute files, I got these result:
.............................................................................
>> cns_path
>> cns_install
Building with 'MinGW64 Compiler with Windows 10 SDK or later (C++)'.
MEX completed successfully.
Building with 'MinGW64 Compiler with Windows 10 SDK or later (C++)'.
MEX completed successfully.
Building with 'MinGW64 Compiler with Windows 10 SDK or later (C++)'.
MEX completed successfully.
Building with 'MinGW64 Compiler with Windows 10 SDK or later (C++)'.
MEX completed successfully.
Warning: Escaped character '\P' is not valid. See 'doc sprintf' for supported special characters.
> In cns_install>Build (line 95)
In cns_install (line 35)
The system cannot find the path specified.
cns_devcount_cuda.cu
CUDA preprocessing successful
Building with 'MinGW64 Compiler with Windows 10 SDK or later (C++)'.
C:Building with 'MinGW64 Compiler with Windows 10 SDK or later (C++)'.
MEX completed successfully.
>> cns_build demopkg
compiling...
The system cannot find the path specified.
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\demopkg\demopkg_generated_cuda_glb_def.h(31): warning #1215-D: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\texture_fetch_functions.h(198): here was declared deprecated
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\demopkg\demopkg_generated_cuda_glb_def.h(40): warning #1215-D: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\texture_fetch_functions.h(198): here was declared deprecated
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\demopkg\demopkg_generated_cuda_glb_def.h(59): warning #1215-D: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\texture_fetch_functions.h(198): here was declared deprecated
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\demopkg\demopkg_generated_cuda_glb_def.h(110): warning #1215-D: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\texture_fetch_functions.h(198): here was declared deprecated
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\demopkg\demopkg_generated_cuda_glb_def.h(119): warning #1215-D: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\texture_fetch_functions.h(198): here was declared deprecated
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\demopkg\demopkg_generated_cuda_glb_def.h(138): warning #1215-D: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\texture_fetch_functions.h(198): here was declared deprecated
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\demopkg\demopkg_generated_cuda_glb_def.h(143): warning #1215-D: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\texture_fetch_functions.h(198): here was declared deprecated
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\source\kernel_def.h(76): warning #177-D: variable "_sc" was declared but never referenced
C:\Users\ALSRAYA\Desktop\codes\hmax\cns\source\kernel_def.h(76): warning #177-D: variable "_sc" was declared but never referenced
demopkg_generated_cuda.cu
CUDA preprocessing successful
Building with 'MinGW64 Compiler with Windows 10 SDK or later (C++)'.
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\vadefs.h:61:26: error: expected initializer before 'uintptr_t'
typedef unsigned __int64 uintptr_t;
^~~~~~~~~
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\vcruntime.h:96:9: error: expected constructor, destructor, or type conversion before '(' token
_CRT_BEGIN_C_HEADER
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\stdlib.h:394:25: error: expected declaration before end of line
#pragma pack(push, 4)
^
CUDA compilation [mex] failed
Building with 'MinGW64 Compiler with Windows 10 SDK or later (C++)'.
MEX completed successfully.
CPU compilation successful
>> demopkg_run
Defining a network model....
Building the model (platform: GPU)....
Error using cns (line 96)
Undefined function or variable 'demopkg_compiled_cuda'.
Error in demopkg_run (line 33)
cns('init', m);
>>
................................................................................................
I followed the steps to run a CNS package, the figure that I want to get is attached.
Also, I installed some packages like CUDA driver.
But I can not understand where the mistake.
Thank you in advance.
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!