Skip to content

Commit

Permalink
Merge branch 'main' into local_memory_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bader authored Nov 14, 2024
2 parents d1cd8fa + a0b35ca commit 82b826b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cts_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push:
branches:
# Run on our default base branch to prime ccache for faster CI runs in PRs.
- SYCL-2020
- main

jobs:
# Pushing container images requires DockerHub credentials, provided as GitHub secrets.
Expand Down
2 changes: 1 addition & 1 deletion test_plans/kernel.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is a test plan cover sycl::kernel functionality that is not covered by curr

== Testing scope

Tests intend to cover functions from 4.11.13. The kernel class that are not covered in https://github.com/KhronosGroup/SYCL-CTS/tree/SYCL-2020/tests/kernel
Tests intend to cover functions from 4.11.13. The kernel class that are not covered in https://github.com/KhronosGroup/SYCL-CTS/tree/main/tests/kernel

=== Device coverage

Expand Down
4 changes: 2 additions & 2 deletions test_plans/kernel_bundle.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is a test plan cover kernel_bundle functionality that is not covered by cur

== Testing scope

Tests intend to cover functions from 4.11. Kernel bundles that are not covered in https://github.com/KhronosGroup/SYCL-CTS/tree/SYCL-2020/tests/kernel_bundle
Tests intend to cover functions from 4.11. Kernel bundles that are not covered in https://github.com/KhronosGroup/SYCL-CTS/tree/main/tests/kernel_bundle

=== Device coverage

Expand Down Expand Up @@ -116,7 +116,7 @@ Check that result of `get_kernel_ids`:

=== Tests for working with specialization constants

Partially tested in https://github.com/KhronosGroup/SYCL-CTS/blob/SYCL-2020/tests/specialization_constants/specialization_constants_via_kernel_bundle.h
Partially tested in https://github.com/KhronosGroup/SYCL-CTS/blob/main/tests/spec_constants/spec_constants_via_kernel_bundle.h

There are two spec constant defined: `SpecName` and `OtherSpecName`.
kernel_handler::get_specialization_constant<OtherSpecName>() shouldn't be used in any kernel in the application.
Expand Down
2 changes: 1 addition & 1 deletion test_plans/queue_constructors.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is a test plan for the for new constructors of class `sycl::queue` describe

== Testing scope

Tests intend to cover not covered constructors from 4.6.5.1. Queue interface that are not covered in https://github.com/KhronosGroup/SYCL-CTS/blob/SYCL-2020/tests/queue/queue_constructors.cpp
Tests intend to cover not covered constructors from 4.6.5.1. Queue interface that are not covered in https://github.com/KhronosGroup/SYCL-CTS/blob/main/tests/queue/queue_constructors.cpp

=== Device coverage

Expand Down
4 changes: 2 additions & 2 deletions tests/invoke/parallel_for_simplifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
// parallel_for({N}, some_kernel)
// parallel_for({N1, N2}, some_kernel)
// parallel_for({N1, N2, N3}, some_kernel)
// Test plan:
https://github.com/KhronosGroup/SYCL-CTS/blob/SYCL-2020/test_plans/parallel_for_simplifications.asciidoc
//
// Test plan: /test_plans/parallel_for_simplifications.asciidoc
//
*******************************************************************************/

Expand Down
20 changes: 12 additions & 8 deletions tests/range/range_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ void test_range_kernels(
const sycl::range<dims> range_two_const(range_two);
const sycl::range<dims> range_const(range);

// make sure bitwise shift rhs is smaller than number of bits in size_t.
sycl::range<dims> range_quarter(range / 4);
const sycl::range<dims> range_quarter_const(range_quarter);

// friend bool operator==(const T& lhs, const T& rhs)
INDEX_EQ_KERNEL_TEST(==, range, range_two);

Expand All @@ -62,8 +66,8 @@ void test_range_kernels(
INDEX_KERNEL_TEST(*, range, range_two_const, result);
INDEX_KERNEL_TEST(/, range, range_two_const, result);
INDEX_KERNEL_TEST(%, range, range_two_const, result);
INDEX_KERNEL_TEST(<<, range, range_two_const, result);
INDEX_KERNEL_TEST(>>, range, range_two_const, result);
INDEX_KERNEL_TEST(<<, range, range_quarter_const, result);
INDEX_KERNEL_TEST(>>, range, range_quarter_const, result);
INDEX_KERNEL_TEST(&, range, range_two_const, result);
INDEX_KERNEL_TEST(|, range, range_two_const, result);
INDEX_KERNEL_TEST(^, range, range_two_const, result);
Expand All @@ -81,8 +85,8 @@ void test_range_kernels(
DUAL_SIZE_INDEX_KERNEL_TEST(*, range, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(/, range, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(%, range, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(<<, range, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(>>, range, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(<<, range_quarter, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(>>, range_quarter, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(&, range, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(|, range, integer, result);
DUAL_SIZE_INDEX_KERNEL_TEST(^, range, integer, result);
Expand All @@ -99,8 +103,8 @@ void test_range_kernels(
INDEX_ASSIGNMENT_TESTS(*=, *, range, range_two, result);
INDEX_ASSIGNMENT_TESTS(/=, /, range, range_two, result);
INDEX_ASSIGNMENT_TESTS(%=, %, range, range_two, result);
INDEX_ASSIGNMENT_TESTS(<<=, <<, range, range_two, result);
INDEX_ASSIGNMENT_TESTS(>>=, >>, range, range_two, result);
INDEX_ASSIGNMENT_TESTS(<<=, <<, range, range_quarter, result);
INDEX_ASSIGNMENT_TESTS(>>=, >>, range, range_quarter, result);
INDEX_ASSIGNMENT_TESTS(&=, &, range, range_two, result);
INDEX_ASSIGNMENT_TESTS(|=, |, range, range_two, result);
INDEX_ASSIGNMENT_TESTS(^=, ^, range, range_two, result);
Expand All @@ -111,8 +115,8 @@ void test_range_kernels(
INDEX_ASSIGNMENT_INTEGER_TESTS(*=, *, range, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(/=, /, range, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(%=, %, range, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(<<=, <<, range, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(>>=, >>, range, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(<<=, <<, range_quarter, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(>>=, >>, range_quarter, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(&=, &, range, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(|=, |, range, integer, result);
INDEX_ASSIGNMENT_INTEGER_TESTS(^=, ^, range, integer, result);
Expand Down

0 comments on commit 82b826b

Please sign in to comment.