[BUILD] OptiX support on Windows

Aperta
#2,039 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cmake, cpp

Direzione di ricerca

Start with the Windows OptiX build errors in the issue and inspect src/cmake/externalpackages.cmake around line 153, where the dl and rt libraries are hardcoded. Reproduce the OptiX-enabled build with the listed LLVM, CUDA, and OptiX versions, then verify that OSL builds successfully on Windows with OptiX support and appropriate library handling.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I managed to build OSL project on Windows without OptiX support. With clang+llvm-18.1.8

Once I add OptiX support OptiX 8.0 or OptiX 9.0
CUDA 12.0

[build] C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\include\yvals_core.h(892): error: static assertion failed with "error STL1002: Unexpected compiler version, expected CUDA 12.4 or newer."

When I update to CUDA 13.0

[build] clang++: warning: CUDA version is newer than the latest supported version 12.3 [-Wunknown-cuda-version]
[build] In file included from <built-in>:1:
[build] C:\Users\Alexey\sandbox\clang+llvm-18.1.8-x86_64-pc-windows-msvc\lib\clang\18\include\__clang_cuda_runtime_wrapper.h:387:10: fatal error: 'texture_fetch_functions.h' file not found
[build]   387 | #include "texture_fetch_functions.h"
[build]       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[build] 1 error generated when compiling for sm_60.

Also, dl and rt libraries are hardcoded here, but I'm sure it won't work on Windows.
https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/blob/main/src/cmake/externalpackages.cmake#L153

Lingua principale
C++
Stelle
2.4k
Fork
421
Merge medio
1g 21h
PR unite (30g)
30

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AcademySoftwareFoundation/OpenShadingLanguage

Tutte le issue di AcademySoftwareFoundation/OpenShadingLanguage

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.