diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 18e048c2c8..ad2bc55340 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: - name: linux-gcc11 os: ubuntu-20.04 publish: true - containerImage: ghcr.io/gafferhq/build/build:3.0.0 + containerImage: ghcr.io/gafferhq/build/build:3.1.0 jobs: 4 - name: macos-arm64 diff --git a/Changes.md b/Changes.md index 8c2d0321f8..7dd46399e9 100644 --- a/Changes.md +++ b/Changes.md @@ -1,7 +1,9 @@ 9.0.0 alpha x (relative to 9.0.0 alpha 3) ------------- - +- OpenShadingLanguage : + - Updated to version 1.13.11.0. + - Enabled Optix support on Linux. 9.0.0 alpha 3 (relative to 9.0.0 alpha 2) ------------- diff --git a/LLVM/config.py b/LLVM/config.py index 3937bfec7c..57e098cb29 100644 --- a/LLVM/config.py +++ b/LLVM/config.py @@ -27,10 +27,26 @@ " -DLLVM_ENABLE_ZSTD=OFF" " -DLLVM_INCLUDE_BENCHMARKS=OFF" " -DLLVM_INCLUDE_TESTS=OFF" - " -DLLVM_TARGETS_TO_BUILD='Native'" + " -DLLVM_TARGETS_TO_BUILD={buildTargets}" " ..", "cd build && make install -j {jobs}" ], + "variables" : { + + "buildTargets" : "'Native'", + + }, + + "platform:linux" : { + + "variables" : { + + "buildTargets" : "'Native;NVPTX'", + + }, + + }, + } diff --git a/OpenShadingLanguage/config.py b/OpenShadingLanguage/config.py index 226fc85f97..675331d625 100644 --- a/OpenShadingLanguage/config.py +++ b/OpenShadingLanguage/config.py @@ -2,7 +2,7 @@ "downloads" : [ - "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/archive/refs/tags/v1.12.14.0.tar.gz" + "https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/archive/refs/tags/v1.13.11.0.tar.gz" ], @@ -19,6 +19,9 @@ "DYLD_FALLBACK_LIBRARY_PATH" : "{buildDir}/lib", "LD_LIBRARY_PATH" : "{buildDir}/lib", "PATH" : "{buildDir}/bin:$PATH", + # We define `OPTIX_ROOT_DIR` in the build container for + # Cycles to find it, but OSL wants `OPTIX_INSTALL_DIR`. + "OPTIX_INSTALL_DIR" : "$OPTIX_ROOT_DIR", }, @@ -32,12 +35,12 @@ " -D CMAKE_INSTALL_LIBDIR={buildDir}/lib" " -D CMAKE_PREFIX_PATH={buildDir}" " -D STOP_ON_WARNING=0" - " -D ENABLERTTI=1" " -D LLVM_STATIC=1" " -D USE_BATCHED={useBatched}" " -D OSL_SHADER_INSTALL_DIR={buildDir}/shaders" " -D Python_ROOT_DIR={buildDir}" " -D Python_FIND_STRATEGY=LOCATION" + " {extraArguments}" " ..", "cd gafferBuild && make install -j {jobs} VERBOSE=1", "cp {buildDir}/share/doc/OSL/osl-languagespec.pdf {buildDir}/doc", @@ -47,6 +50,7 @@ "variables" : { + "extraArguments" : "", "extraCommands" : "", "useBatched" : "b8_AVX,b8_AVX2,b8_AVX2_noFMA,b8_AVX512,b8_AVX512_noFMA,b16_AVX512,b16_AVX512_noFMA", @@ -66,6 +70,15 @@ ], + "platform:linux" : { + + "variables" : { + + "extraArguments" : "-D OSL_USE_OPTIX=1", + + }, + }, + "platform:macos" : { "variables" : {