Comments (3)
なんかコンパイルエラーになるので中止
1>------ ビルド開始: プロジェクト: sutil_sdk, 構成: Release x64 ------
1>Building NVCC ptx file lib/ptx/cuda_compile_ptx_generated_phong.cu.ptx
1>CMake Error at cuda_compile_ptx_generated_phong.cu.ptx.cmake:251 (message):
1> Error generating
1> C:/Users/gam0022/Dropbox/redflash/build/lib/ptx/cuda_compile_ptx_generated_phong.cu.ptx
1>
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" はコード 1 を伴って終了しました。
1>プロジェクト "sutil_sdk.vcxproj" のビルドが終了しました -- 失敗。
2>------ ビルド開始: プロジェクト: optixRaymarching, 構成: Release x64 ------
2>Building NVCC ptx file lib/ptx/optixRaymarching_generated_optixRaymarching.cu.ptx
2>CMake Error at optixRaymarching_generated_optixRaymarching.cu.ptx.cmake:251 (message):
2> Error generating
2> C:/Users/gam0022/Dropbox/redflash/build/lib/ptx/optixRaymarching_generated_optixRaymarching.cu.ptx
2>
2>
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" はコード 1 を伴って終了しました。
2>プロジェクト "optixRaymarching.vcxproj" のビルドが終了しました -- 失敗。
========== ビルド: 0 正常終了、2 失敗、1 更新不要、0 スキップ ==========
from redflash.
Damn, that's due to the CUDA_HOST_COMPILER setting which is not finding the matching cl.exe location, because MSVS 2017 changed the installation folder hierarchy and FindCUDA.cmake is probably not aware of that.
The solution is simple though and part of this thread:
https://devtalk.nvidia.com/default/topic/1036401/optix/optix-installation-windows-cuda-9-2/post/5265364/#5265364
To be able to compile *.cu files which are not used in OptiX device code, but as native kernels (all OptiX Prime examples and the optixRaycasting example and for unknown reasons sutil) with MSVS 2017, I also needed to set the CUDA_HOST_COMPILER in the CMake GUI explicitly to the 64-bit cl.exe.
In my installation that was here:
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.14.26428/bin/Hostx64/x64/cl.exe"
https://github.com/gam0022/redflash/pull/12/files#diff-51242c74e99d0d75fbc77e8a318d94e4R210
from redflash.
重大度レベル コード 説明 プロジェクト ファイル 行 抑制状態
エラー calling a __host__ function("map") from a __global__ function("intersect") is not allowed redflash C:\Users\gam0022\Dropbox\redflash\redflash\redflash.cu 399
重大度レベル コード 説明 プロジェクト ファイル 行 抑制状態
エラー identifier "map" is undefined in device code redflash C:\Users\gam0022\Dropbox\redflash\redflash\redflash.cu 399
from redflash.
Related Issues (5)
- レイトレ合宿7 HOT 5
- レイトレ合宿7のスライド HOT 1
- 時間切れ判定の制御
- TODO
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redflash.