Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions .gitea/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,29 +153,29 @@ jobs:
with:
name: windows-x86_64-gpu-amd-output
path: windows-x86_64-gpu-amd-output/
# test-windows-x86_64-gpu-arc:
# runs-on: [ windows, x86_64, arc ]
# needs:
# - build-windows-x86_64-rel
# steps:
# - name: Checkout Workflows
# uses: actions/checkout@v4
# with:
# sparse-checkout: .gitea
# - name: Re-initialize repository
# uses: ./.gitea/actions/checkout
# - name: Run Tests
# uses: ./.gitea/actions/test
# with:
# bin-dir: "windows-x86_64"
# out-dir: "windows-x86_64-gpu-arc-output"
# test-args: "--device Arc --nocpu"
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# if: always()
# with:
# name: windows-x86_64-gpu-arc-output
# path: windows-x86_64-gpu-arc-output/
test-windows-x86_64-gpu-arc:
runs-on: [ windows, x86_64, arc ]
needs:
- build-windows-x86_64-rel
steps:
- name: Checkout Workflows
uses: actions/checkout@v4
with:
sparse-checkout: .gitea
- name: Re-initialize repository
uses: ./.gitea/actions/checkout
- name: Run Tests
uses: ./.gitea/actions/test
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-gpu-arc-output"
test-args: "--device Arc --nocpu"
- name: Upload artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: windows-x86_64-gpu-arc-output
path: windows-x86_64-gpu-arc-output/
test-windows-x86_64-gpu-uhd:
runs-on: [ windows, x86_64, uhd ]
needs:
Expand Down Expand Up @@ -386,7 +386,7 @@ jobs:
# path: macos-x86_64-cpu-output/
analyze-output:
runs-on: [ linux ]
needs: [ test-windows-x86_64-cpu, test-windows-x86_64-gpu-amd, test-windows-x86_64-gpu-uhd, test-linux-x86_64-cpu, test-linux-x86_64-gpu-nv ]
needs: [ test-windows-x86_64-cpu, test-windows-x86_64-gpu-amd, test-windows-x86_64-gpu-uhd, test-windows-x86_64-gpu-arc, test-linux-x86_64-cpu, test-linux-x86_64-gpu-nv ]
if: always()
steps:
- name: Checkout Workflows
Expand All @@ -405,10 +405,10 @@ jobs:
with:
name: windows-x86_64-gpu-amd-output
path: windows-x86_64-gpu-amd-output/
# - uses: actions/download-artifact@v3
# with:
# name: windows-x86_64-gpu-arc-output
# path: windows-x86_64-gpu-arc-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-arc-output
path: windows-x86_64-gpu-arc-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-uhd-output
Expand Down Expand Up @@ -447,5 +447,5 @@ jobs:
# path: macos-x86_64-cpu-output/
- name: Analyze Output
run: |
python scripts/analyze_output.py windows-x86_64-cpu-output/test_Ray_output.txt windows-x86_64-gpu-amd-output/test_Ray_output.txt windows-x86_64-gpu-uhd-output/test_Ray_output.txt linux-x86_64-cpu-output/test_Ray_output.txt linux-x86_64-gpu-nv-output/test_Ray_output.txt
python scripts/analyze_output.py windows-x86_64-cpu-output/test_Ray_output.txt windows-x86_64-gpu-amd-output/test_Ray_output.txt windows-x86_64-gpu-uhd-output/test_Ray_output.txt windows-x86_64-gpu-arc-output/test_Ray_output.txt linux-x86_64-cpu-output/test_Ray_output.txt linux-x86_64-gpu-nv-output/test_Ray_output.txt
shell: bash
58 changes: 29 additions & 29 deletions .gitea/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,29 +349,29 @@ jobs:
with:
name: windows-x86_64-gpu-amd-output
path: windows-x86_64-gpu-amd-output/
# test-windows-x86_64-gpu-arc:
# runs-on: [ windows, x86_64, arc ]
# needs:
# - build-windows-x86_64-rel
# steps:
# - name: Checkout Workflows
# uses: actions/checkout@v4
# with:
# sparse-checkout: .gitea
# - name: Re-initialize repository
# uses: ./.gitea/actions/checkout
# - name: Run Tests
# uses: ./.gitea/actions/test
# with:
# bin-dir: "windows-x86_64"
# out-dir: "windows-x86_64-gpu-arc-output"
# test-args: "--full --device Arc --nocpu"
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# if: always()
# with:
# name: windows-x86_64-gpu-arc-output
# path: windows-x86_64-gpu-arc-output/
test-windows-x86_64-gpu-arc:
runs-on: [ windows, x86_64, arc ]
needs:
- build-windows-x86_64-rel
steps:
- name: Checkout Workflows
uses: actions/checkout@v4
with:
sparse-checkout: .gitea
- name: Re-initialize repository
uses: ./.gitea/actions/checkout
- name: Run Tests
uses: ./.gitea/actions/test
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-gpu-arc-output"
test-args: "--full --device Arc --nocpu"
- name: Upload artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: windows-x86_64-gpu-arc-output
path: windows-x86_64-gpu-arc-output/
test-windows-x86_64-gpu-uhd:
runs-on: [ windows, x86_64, uhd ]
needs:
Expand Down Expand Up @@ -820,7 +820,7 @@ jobs:
# path: windows-arm64-gpu-perf-output/
analyze-output:
runs-on: [ linux ]
needs: [ test-windows-x86_64-cpu, test-windows-x86_64-gpu-amd, test-windows-x86_64-gpu-uhd, test-linux-x86_64-cpu, test-linux-x86_64-gpu-nv, test-linux-x86_64-cpu-sse2, test-linux-x86_64-cpu-sse41, test-windows-x86_64-cpu-avx, test-windows-x86_64-cpu-avx2, test-windows-x86_64-cpu-avx512, test-linux-x86_64-cpu-tsan, test-windows-x86_64-cpu-asan, test-windows-x86_64-gpu-amd-asan ]
needs: [ test-windows-x86_64-cpu, test-windows-x86_64-gpu-amd, test-windows-x86_64-gpu-uhd, test-windows-x86_64-gpu-arc, test-linux-x86_64-cpu, test-linux-x86_64-gpu-nv, test-linux-x86_64-cpu-sse2, test-linux-x86_64-cpu-sse41, test-windows-x86_64-cpu-avx, test-windows-x86_64-cpu-avx2, test-windows-x86_64-cpu-avx512, test-linux-x86_64-cpu-tsan, test-windows-x86_64-cpu-asan, test-windows-x86_64-gpu-amd-asan ]
if: always()
steps:
- name: Checkout Workflows
Expand All @@ -839,10 +839,10 @@ jobs:
with:
name: windows-x86_64-gpu-amd-output
path: windows-x86_64-gpu-amd-output/
# - uses: actions/download-artifact@v3
# with:
# name: windows-x86_64-gpu-arc-output
# path: windows-x86_64-gpu-arc-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-arc-output
path: windows-x86_64-gpu-arc-output/
- uses: actions/download-artifact@v3
with:
name: windows-x86_64-gpu-uhd-output
Expand Down Expand Up @@ -921,5 +921,5 @@ jobs:
# path: windows-arm64-gpu-perf-output/
- name: Analyze Output
run: |
python scripts/analyze_output.py windows-x86_64-cpu-output/test_Ray_output.txt windows-x86_64-gpu-amd-output/test_Ray_output.txt windows-x86_64-gpu-uhd-output/test_Ray_output.txt linux-x86_64-cpu-output/test_Ray_output.txt linux-x86_64-gpu-nv-output/test_Ray_output.txt linux-x86_64-cpu-sse2-output/test_Ray_output.txt linux-x86_64-cpu-sse41-output/test_Ray_output.txt windows-x86_64-cpu-avx-output/test_Ray_output.txt windows-x86_64-cpu-avx2-output/test_Ray_output.txt windows-x86_64-cpu-avx512-output/test_Ray_output.txt linux-x86_64-cpu-tsan-output/test_Ray_output.txt windows-x86_64-cpu-asan-output/test_Ray_output.txt windows-x86_64-gpu-amd-asan-output/test_Ray_output.txt
python scripts/analyze_output.py windows-x86_64-cpu-output/test_Ray_output.txt windows-x86_64-gpu-amd-output/test_Ray_output.txt windows-x86_64-gpu-uhd-output/test_Ray_output.txt windows-x86_64-gpu-arc-output/test_Ray_output.txt linux-x86_64-cpu-output/test_Ray_output.txt linux-x86_64-gpu-nv-output/test_Ray_output.txt linux-x86_64-cpu-sse2-output/test_Ray_output.txt linux-x86_64-cpu-sse41-output/test_Ray_output.txt windows-x86_64-cpu-avx-output/test_Ray_output.txt windows-x86_64-cpu-avx2-output/test_Ray_output.txt windows-x86_64-cpu-avx512-output/test_Ray_output.txt linux-x86_64-cpu-tsan-output/test_Ray_output.txt windows-x86_64-cpu-asan-output/test_Ray_output.txt windows-x86_64-gpu-amd-asan-output/test_Ray_output.txt
shell: bash
58 changes: 29 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,29 +153,29 @@ jobs:
with:
name: windows-x86_64-gpu-amd-output
path: windows-x86_64-gpu-amd-output/
# test-windows-x86_64-gpu-arc:
# runs-on: [ windows, x86_64, arc ]
# needs:
# - build-windows-x86_64-rel
# steps:
# - name: Checkout Workflows
# uses: actions/checkout@v4
# with:
# sparse-checkout: .github
# - name: Re-initialize repository
# uses: ./.github/actions/checkout
# - name: Run Tests
# uses: ./.github/actions/test
# with:
# bin-dir: "windows-x86_64"
# out-dir: "windows-x86_64-gpu-arc-output"
# test-args: "--device Arc --nocpu"
# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: windows-x86_64-gpu-arc-output
# path: windows-x86_64-gpu-arc-output/
test-windows-x86_64-gpu-arc:
runs-on: [ windows, x86_64, arc ]
needs:
- build-windows-x86_64-rel
steps:
- name: Checkout Workflows
uses: actions/checkout@v4
with:
sparse-checkout: .github
- name: Re-initialize repository
uses: ./.github/actions/checkout
- name: Run Tests
uses: ./.github/actions/test
with:
bin-dir: "windows-x86_64"
out-dir: "windows-x86_64-gpu-arc-output"
test-args: "--device Arc --nocpu"
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: windows-x86_64-gpu-arc-output
path: windows-x86_64-gpu-arc-output/
test-windows-x86_64-gpu-uhd:
runs-on: [ windows, x86_64, uhd ]
needs:
Expand Down Expand Up @@ -386,7 +386,7 @@ jobs:
# path: macos-x86_64-cpu-output/
analyze-output:
runs-on: [ linux ]
needs: [ test-windows-x86_64-cpu, test-windows-x86_64-gpu-amd, test-windows-x86_64-gpu-uhd, test-linux-x86_64-cpu, test-linux-x86_64-gpu-nv ]
needs: [ test-windows-x86_64-cpu, test-windows-x86_64-gpu-amd, test-windows-x86_64-gpu-uhd, test-windows-x86_64-gpu-arc, test-linux-x86_64-cpu, test-linux-x86_64-gpu-nv ]
if: always()
steps:
- name: Checkout Workflows
Expand All @@ -406,10 +406,10 @@ jobs:
with:
name: windows-x86_64-gpu-amd-output
path: windows-x86_64-gpu-amd-output/
# - uses: actions/download-artifact@v4
# with:
# name: windows-x86_64-gpu-arc-output
# path: windows-x86_64-gpu-arc-output/
- uses: actions/download-artifact@v4
with:
name: windows-x86_64-gpu-arc-output
path: windows-x86_64-gpu-arc-output/
- uses: actions/download-artifact@v4
with:
name: windows-x86_64-gpu-uhd-output
Expand Down Expand Up @@ -448,5 +448,5 @@ jobs:
# path: macos-x86_64-cpu-output/
- name: Analyze Output
run: |
python scripts/analyze_output.py windows-x86_64-cpu-output/test_Ray_output.txt windows-x86_64-gpu-amd-output/test_Ray_output.txt windows-x86_64-gpu-uhd-output/test_Ray_output.txt linux-x86_64-cpu-output/test_Ray_output.txt linux-x86_64-gpu-nv-output/test_Ray_output.txt
python scripts/analyze_output.py windows-x86_64-cpu-output/test_Ray_output.txt windows-x86_64-gpu-amd-output/test_Ray_output.txt windows-x86_64-gpu-uhd-output/test_Ray_output.txt windows-x86_64-gpu-arc-output/test_Ray_output.txt linux-x86_64-cpu-output/test_Ray_output.txt linux-x86_64-gpu-nv-output/test_Ray_output.txt
shell: bash
16 changes: 8 additions & 8 deletions tests/test_shading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1656,8 +1656,8 @@ void test_complex_mat5_spot_light(const char *arch_list[], std::string_view pref

void test_complex_mat5_dir_light(const char *arch_list[], std::string_view preferred_device) {
const int SampleCount = 26;
const double MinPSNR = 23.0;
const int PixThres = 5145;
const double MinPSNR = 22.95;
const int PixThres = 5150;

Ray::principled_mat_desc_t metal_mat_desc;
metal_mat_desc.base_texture = Ray::TextureHandle{0};
Expand All @@ -1678,7 +1678,7 @@ void test_complex_mat5_dir_light(const char *arch_list[], std::string_view prefe
void test_complex_mat5_sun_light(const char *arch_list[], std::string_view preferred_device) {
const int SampleCount = 15;
const double MinPSNR = 24.25;
const int PixThres = 4890;
const int PixThres = 4915;

Ray::principled_mat_desc_t metal_mat_desc;
metal_mat_desc.base_texture = Ray::TextureHandle{0};
Expand All @@ -1697,8 +1697,8 @@ void test_complex_mat5_sun_light(const char *arch_list[], std::string_view prefe
}

void test_complex_mat5_moon_light(const char *arch_list[], std::string_view preferred_device) {
const int SampleCount = 12;
const int PixThres = 430;
const int SampleCount = 14;
const int PixThres = 320;

Ray::principled_mat_desc_t metal_mat_desc;
metal_mat_desc.base_texture = Ray::TextureHandle{0};
Expand Down Expand Up @@ -1740,7 +1740,7 @@ void test_complex_mat5_hdri_light(const char *arch_list[], std::string_view pref
void test_complex_mat6(const char *arch_list[], std::string_view preferred_device) {
const int SampleCount = 43;
const double MinPSNR = 23.0;
const int PixThres = 4375;
const int PixThres = 4380;

Ray::principled_mat_desc_t olive_mat_desc;
olive_mat_desc.base_color[0] = 0.836164f;
Expand Down Expand Up @@ -1873,7 +1873,7 @@ void test_complex_mat6_dir_light(const char *arch_list[], std::string_view prefe
void test_complex_mat6_hdri_light(const char *arch_list[], std::string_view preferred_device) {
const int SampleCount = 55;
const double MinPSNR = 21.0;
const int PixThres = 6300;
const int PixThres = 6305;

Ray::principled_mat_desc_t olive_mat_desc;
olive_mat_desc.base_color[0] = 0.836164f;
Expand Down Expand Up @@ -1910,7 +1910,7 @@ void test_complex_mat7_principled(const char *arch_list[], std::string_view pref
void test_ray_flags(const char *arch_list[], std::string_view preferred_device) {
const int SampleCount = 30;
const double MinPSNR = 29.55;
const int PixThres = 2120;
const int PixThres = 2125;

Ray::principled_mat_desc_t unused;
run_material_test(arch_list, preferred_device, "ray_flags", unused, SampleCount, MinPSNR, PixThres,
Expand Down