Git Product home page Git Product logo

Comments (3)

gam0022 avatar gam0022 commented on June 1, 2024

なんかコンパイルエラーになるので中止

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.

gam0022 avatar gam0022 commented on June 1, 2024

https://devtalk.nvidia.com/default/topic/1048819/optix/hdr-denoising-variable-has-no-effect/post/5323114/#5323114

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.

gam0022 avatar gam0022 commented on June 1, 2024

#12

重大度レベル    コード    説明    プロジェクト    ファイル    行    抑制状態
エラー        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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.