[BUILD] OptiX support on Windows

Offen
#2,039 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
cmake, cpp

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
C++
Sterne
2.4k
Forks
421
Ø Merge
1 T. 21 Std.
Gemergte PRs (30 T.)
30

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus AcademySoftwareFoundation/OpenShadingLanguage

Alle Issues in AcademySoftwareFoundation/OpenShadingLanguage

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.