gam0022/redflash

レイトレ合宿7

Closed this issue · 5 comments

https://sites.google.com/site/raytracingcamp7/

レンダリング部門の仕様
60秒以内に自動で終了し、終了時にレンダリング画像をpngで出力してください。

TODO

コマンドメモ

powershell -Command "Measure-Command {.\optixRaymarching.exe -f test.ppm -n}"
shocker:放射能: 14:43
OptiX 6.0いけました!

https://devtalk.nvidia.com/default/topic/1052717/optix/optix-6-0-0-fails-with-driver-425-25/post/5344208/#5344208
なにやらnvoptix.dllの発見にEC2インスタンスの環境だと失敗しているらしく
C:\Windows\System32\DriverStore\FileRepository\nv_dispw〜
から
C:\Windows\System32
にnvrtum64.dllとnvoptix.dllをコピーすると動作しました。
RTX ONです。

nvrtum64.dllとnvoptix.dll
C:\Windows\System32

.cu を .ptx にコンパイルしていない場合は、以下の .h を全部 cuda/ にコピーしないと .cu のコンパイルが通りませんでした。

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include
C:\ProgramData\NVIDIA Corporation\OptiX SDK 6.0.0\include

性能比較

環境 1242 サンプリングに要した時間(秒)
p3.2xlarge (NVIDIA Tesla V100 GPUs x1) 60.1113 1.0
RTX2070 571.501 9.50738047588

p3.2xlarge (NVIDIA Tesla V100 GPUs x1)

C:\Users\Administrator\Desktop\redflash_submit>.\redflash.exe -f aws.png -t 60
[info] getCuStringFromFile source_location: C:\Users\Administrator\Desktop\redflash_submit/redflash.cu
[info] getCuStringFromFile source_location: C:\Users\Administrator\Desktop\redflash_submit/cuda/redflash.cu
[info] resolvePath source_location: C:\Users\Administrator\Desktop\redflash_submit/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_3k.hdr
[info] resolvePath source_location: C:\Users\Administrator\Desktop\redflash_submit/data/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_3k.hdr
[info] resolvePath source_location: C:\Users\Administrator\Desktop\redflash_submit/cow.obj
[info] resolvePath source_location: C:\Users\Administrator\Desktop\redflash_submit/data/cow.obj
[info] getCuStringFromFile source_location: C:\Users\Administrator\Desktop\redflash_submit/triangle_mesh.cu
[info] getCuStringFromFile source_location: C:\Users\Administrator\Desktop\redflash_submit/cuda/triangle_mesh.cu
[info] getCuStringFromFile source_location: C:\Users\Administrator\Desktop\redflash_submit/parallelogram.cu
[info] getCuStringFromFile source_location: C:\Users\Administrator\Desktop\redflash_submit/cuda/parallelogram.cu
resolution: 512x512 px
time_limit: 60 sec.
sample: INF(20)
reached time limit! used_time: 59.9499 sec. remain_time: 0.050123 sec.
sampled: 1242
total_time: 60.1113 sec.

RTX2070

C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit
λ .\redflash.exe -f rtx2070.png -s 1242
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/redflash.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/cuda/redflash.cu
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_3k.hdr
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/data/GrandCanyon_C_YumaPoint/GCanyon_C_YumaPoint_3k.hdr
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/cow.obj
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/data/cow.obj
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/triangle_mesh.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/cuda/triangle_mesh.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/parallelogram.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash_submit\redflash_submit/cuda/parallelogram.cu
resolution: 512x512 px
time_limit: 3600 sec.
sample: 1242
total_time: 571.501 sec.

ブログの記事を書いたので、一旦完了
https://twitter.com/gam0022/status/1174105698503774208