Uncomment only one /device <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/device ascend
/device gpu/device cpu
Software Environment:
MindSpore version (source or binary): source(2022/10/19)
Python version (e.g., Python 3.7.5): Python 3.8.5
OS platform and distribution (e.g., Linux Ubuntu 16.04):Windows 10
GCC/Compiler version (if compiled from source): MSVC 14.29.30133
Describe the current behavior
cudart.lib cannot be directly set on Windows 10
Describe the expected behavior
cudart.lib should be set on Windows 10
Steps to reproduce the issue
call build.bat ms_vs_gpu
Related log / screenshot
Detect gpu arch on this device.
CMake Error at G:/Compiled/mindspore/build/mindspore/ccsrc/CMakeFiles/CMakeTmp/CMakeLists.txt:21 (target_link_libraries):
Syntax error in cmake code at
Environment
Hardware Environment(
Ascend
/GPU
/CPU
): GPUSoftware Environment:
Describe the current behavior
cudart.lib cannot be directly set on Windows 10
Describe the expected behavior
cudart.lib should be set on Windows 10
Steps to reproduce the issue
Related log / screenshot
Detect gpu arch on this device. CMake Error at G:/Compiled/mindspore/build/mindspore/ccsrc/CMakeFiles/CMakeTmp/CMakeLists.txt:21 (target_link_libraries): Syntax error in cmake code at
when parsing string
Invalid character escape '\P'.
CMake Error at mindspore/ccsrc/CMakeLists.txt:37 (try_run): Failed to configure test project build system. Call Stack (most recent call first): mindspore/ccsrc/CMakeLists.txt:172 (set_nvcc_flag)
Special notes for this issue
Workaround by change mindspore /ccsrc/CMakeLists.txt at Line 35: find_library(CUDA_LIB_PATH "cudart" HINTS ${CUDA_PATH}/lib/x64)
set(CUDA_LIB_PATH ${CUDA_PATH}/lib/x64/cudart.lib)
Then it works.