-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand
More file actions
73 lines (60 loc) · 2.76 KB
/
command
File metadata and controls
73 lines (60 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
./dmxdenoiser
--start 1
--end 100
--gpu 0
--frames 3
--beauty default
--albedo albedo
--normal tech.####.exr:N
--depth tech.####.exr:z
--aluxary
--output filtered.####.exr
# Install openexr on Windows
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg\vcpkg.exe install --triplet x64-windows
grep CMAKE_BUILD_TYPE build-release/CMakeCache.txt
# should print: CMAKE_BUILD_TYPE:STRING=Release
rm -f CMakeCache.txt CMakeFiles 2>/dev/null || true
# Debug tree
Debug build & run tests:
cmake -S . -B build/debug -DCMAKE_BUILD_TYPE=Debug
(cmake --build build-debug -j 8 && cd build-debug && ctest --output-on-failure --verbose -j 8 && cd .. && cd ..)
# Release tree
Release build & run tests:
cmake -S . -B build-release -DCMAKE_BUILD_TYPE=Release
(cmake --build build-release -j 8 && cd build-release && ctest --output-on-failure --verbose -j 8 && cd .. && cd ..)
# Windows
# 1. cleanup:
if (Test-Path build) { Remove-Item build -Recurse -Force }
if (Test-Path CMakeCache.txt) { Remove-Item CMakeCache.txt }
if (Test-Path CMakeFiles) { Remove-Item CMakeFiles -Recurse -Force }
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 `
-DCMAKE_TOOLCHAIN_FILE="$PWD\vcpkg\scripts\buildsystems\vcpkg.cmake"
cmake --build build -j 8 --config Release
# Build and run:
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=x64 -host_arch=x64
cmake -S . -B build -G Ninja `
-DCMAKE_TOOLCHAIN_FILE="$PWD/vcpkg/scripts/buildsystems/vcpkg.cmake" `
-DCMAKE_CXX_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" `
-DCMAKE_CUDA_COMPILER="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.0/bin/nvcc.exe" `
-DCMAKE_CUDA_ARCHITECTURES=native
cmake --build build -j8
cd build && ctest --output-on-failure --verbose -j 8 && cd ..
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=x64 -host_arch=x64 && ^
cmake -S . -B build -G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_TOOLCHAIN_FILE="%CD%\vcpkg\scripts\buildsystems\vcpkg.cmake" ^
-DCMAKE_CUDA_COMPILER="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.0/bin/nvcc.exe" ^
-DCMAKE_CUDA_ARCHITECTURES=native && ^
cmake --build build -j16 && ^
ctest --test-dir build --output-on-failure --verbose -j16
cmake --preset mac-cpu-debug
cmake --build --preset mac-cpu-debug -j16
ctest --preset mac-cpu-debug --parallel 16 --verbose
ctest -R ConvolutionFilter_test --preset mac-cpu-debug --parallel 16 --verbose
cmake --preset mac-cpu-dev
cmake --build --preset mac-cpu-dev -j16
ctest --preset mac-cpu-dev --parallel 16 --verbose
ctest -R ConvolutionFilter_test --preset mac-cpu-dev --parallel 16 --verbose