Skip to content

[SYCL][E2E] Switch some of SpecConstants/* tests to use <sycl/detail/core.hpp> #13132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2024
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
4 changes: 3 additions & 1 deletion sycl/test-e2e/SpecConstants/2020/handler-api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

#include <cstdlib>
#include <iostream>
#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

#include "common.hpp"

Expand Down
4 changes: 3 additions & 1 deletion sycl/test-e2e/SpecConstants/2020/host_apis.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// RUN: %{build} -o %t.out -fsycl-dead-args-optimization
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

#include <cmath>

Expand Down
5 changes: 4 additions & 1 deletion sycl/test-e2e/SpecConstants/2020/image_selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
// RUN: env SYCL_PI_TRACE=-1 %{run} %t3.out | FileCheck --match-full-lines --check-prefix=CHECK-DEFAULT-BACK-TO-DEFAULT %s
// clang-format on

#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>
#include <sycl/usm.hpp>

constexpr sycl::specialization_id<int> int_id(3);

Expand Down
4 changes: 3 additions & 1 deletion sycl/test-e2e/SpecConstants/2020/kernel-bundle-api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

#include <cstdlib>
#include <iostream>
#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

#include "common.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
// and parallel_for_work_group to verify that this code compiles and runs
// correctly with user's lambda with and without sycl::kernel_handler argument

#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

int main() {
sycl::queue q;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64,spir64_gen -Xsycl-target-backend=spir64_gen %gpu_aot_target_opts %s -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

constexpr sycl::specialization_id<float> float_id(3.14f);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
//
#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

#include <iostream>

Expand Down
4 changes: 3 additions & 1 deletion sycl/test-e2e/SpecConstants/2020/non-packed-struct-2.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
//
#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

#include <iostream>

Expand Down
4 changes: 3 additions & 1 deletion sycl/test-e2e/SpecConstants/2020/non-packed-struct.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
//
#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

struct user_defined_type {
float a;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

#include <cmath>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
// RUN: -fsycl-dead-args-optimization
// RUN: env SYCL_PI_TRACE=-1 %{run} %t.out | FileCheck %s

#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

const static sycl::specialization_id<int> SpecConst{42};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
// kernel lambdas containing kernel_handler arguments and w/o usage of
// specialization constants in AOT mode

#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

int main() {
sycl::queue q;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
// constants of the SYCL 2020 specification:
// https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html#_example_usage

#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>

#include <sycl/specialization_id.hpp>

#include <array>
#include <cmath>
Expand Down