-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from AcademySoftwareFoundation/gpu-gain-example
Gpu gain example
- Loading branch information
Showing
36 changed files
with
2,145 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ jobs: | |
cxx-compiler: clang++ | ||
cc-compiler: clang | ||
compiler-desc: Clang | ||
cuda: false | ||
- name_prefix: Linux CentOS 7 VFX CY2022 | ||
release_prefix: linux-vfx2022 | ||
ostype: linux | ||
|
@@ -43,6 +44,7 @@ jobs: | |
cxx-compiler: clang++ | ||
cc-compiler: clang | ||
compiler-desc: Clang | ||
cuda: false | ||
- name_prefix: Linux Rocky 8 VFX CY2023 | ||
release_prefix: linux-vfx2023 | ||
ostype: linux | ||
|
@@ -57,6 +59,7 @@ jobs: | |
cxx-compiler: clang++ | ||
cc-compiler: clang | ||
compiler-desc: Clang | ||
cuda: false | ||
- name_prefix: Linux Ubuntu | ||
release_prefix: linux-ubuntu | ||
ostype: linux | ||
|
@@ -70,6 +73,7 @@ jobs: | |
cxx-compiler: clang++ | ||
cc-compiler: clang | ||
compiler-desc: Clang | ||
cuda: true | ||
- name_prefix: MacOS | ||
release_prefix: mac | ||
ostype: mac | ||
|
@@ -82,6 +86,7 @@ jobs: | |
cxx-compiler: clang++ | ||
cc-compiler: clang | ||
compiler-desc: Clang | ||
cuda: false | ||
- name_prefix: Windows | ||
release_prefix: windows | ||
ostype: windows | ||
|
@@ -94,6 +99,20 @@ jobs: | |
cxx-compiler: clang++ | ||
cc-compiler: clang | ||
compiler-desc: Clang | ||
cuda: true | ||
- name_prefix: Windows no CUDA | ||
release_prefix: windows-no-cuda | ||
ostype: windows | ||
os: windows-latest | ||
container: null | ||
has_cmake_presets: true | ||
buildtype: Release | ||
conan_version: 2.0.16 | ||
cxx-standard: 17 | ||
cxx-compiler: clang++ | ||
cc-compiler: clang | ||
compiler-desc: Clang | ||
cuda: false | ||
defaults: | ||
run: | ||
shell: bash | ||
|
@@ -138,6 +157,25 @@ jobs: | |
brew: | ||
brew-cask: | ||
|
||
- name: Install CUDA Toolkit | ||
uses: Jimver/[email protected] | ||
id: cuda-toolkit-linux | ||
if: matrix.ostype == 'linux' && matrix.cuda == true | ||
with: | ||
cuda: '12.1.0' | ||
method: 'network' | ||
sub-packages: '["nvcc", "cudart"]' | ||
linux-local-args: '["--toolkit"]' | ||
|
||
- name: Install CUDA Toolkit | ||
uses: Jimver/[email protected] | ||
id: cuda-toolkit-win | ||
if: matrix.ostype == 'windows' && matrix.cuda == true | ||
with: | ||
cuda: '12.1.0' | ||
method: 'network' | ||
sub-packages: '["nvcc", "cudart", "visual_studio_integration"]' | ||
|
||
# - name: Install system dependencies (CentOS) | ||
# run: | | ||
# rpm install libglvnd-devel | ||
|
@@ -148,25 +186,32 @@ jobs: | |
- name: Configure project with cmake | ||
run: | | ||
[[ ${{ matrix.cuda }} = true ]] && CUDA=TRUE || CUDA=FALSE | ||
if [[ ${{ matrix.has_cmake_presets }} = true ]]; then | ||
# Sets up to build in e.g. build/Release | ||
cmake --preset $CONAN_PRESET -DBUILD_EXAMPLE_PLUGINS=TRUE . | ||
cmake --preset $CONAN_PRESET -DBUILD_EXAMPLE_PLUGINS=TRUE \ | ||
-DPLUGIN_INSTALLDIR=$(pwd)/$BUILD_DIR/Install \ | ||
-DOFX_SUPPORTS_OPENGLRENDER=TRUE \ | ||
-DOFX_SUPPORTS_CUDARENDER=$CUDA . | ||
else | ||
# VFX ref platforms 2022 & earlier have only cmake 3.19. | ||
# Older cmake (<3.23) does not support presets, so invoke with explicit args. | ||
cmake -S . -B $BUILD_DIR -G "Unix Makefiles" \ | ||
-DCMAKE_TOOLCHAIN_FILE=$(pwd)/$BUILD_DIR/generators/conan_toolchain.cmake \ | ||
-DCMAKE_POLICY_DEFAULT_CMP0091=NEW \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_EXAMPLE_PLUGINS=TRUE | ||
-DBUILD_EXAMPLE_PLUGINS=TRUE \ | ||
-DPLUGIN_INSTALLDIR=$(pwd)/$BUILD_DIR/Install \ | ||
-DOFX_SUPPORTS_OPENGLRENDER=TRUE \ | ||
-DOFX_SUPPORTS_CUDARENDER=$CUDA | ||
fi | ||
- name: Build with cmake | ||
run: | | ||
if [[ ${{ matrix.ostype }} = windows ]]; then | ||
cmake --build $BUILD_DIR --config Release --parallel | ||
cmake --build $BUILD_DIR --target install --config Release --parallel | ||
else | ||
cmake --build $BUILD_DIR --parallel | ||
cmake --build $BUILD_DIR --target install --parallel | ||
fi | ||
- name: Build with make | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>${PLUGIN_NAME}</string> | ||
<key>CFBundleExecutable</key> | ||
<string>${PLUGIN_EXE}</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>${BUNDLE_IDENTIFIER}</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleSignature</key> | ||
<string>${BUNDLE_SIGNATURE}</string> | ||
<key>CFBundleVersion</key> | ||
<string>${PLUGIN_VERSION}</string> | ||
<key>CSResourcesFileMapped</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.