diff --git a/SYCL/BFloat16/bfloat16_builtins.cpp b/SYCL/BFloat16/bfloat16_builtins.cpp index ff84ecbeb3..101d811666 100644 --- a/SYCL/BFloat16/bfloat16_builtins.cpp +++ b/SYCL/BFloat16/bfloat16_builtins.cpp @@ -6,14 +6,14 @@ // // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -Xsycl-target-backend --cuda-gpu-arch=sm_80 // RUN: %t.out - +#include #include #include #include -using namespace cl::sycl; -using sycl::ext::oneapi::experimental::bfloat16; +using namespace sycl; +using namespace sycl::ext::oneapi::experimental; constexpr int N = 60; // divisible by all tested array sizes constexpr float bf16_eps = 0.00390625; diff --git a/SYCL/DeviceLib/built-ins/ext_native_math.cpp b/SYCL/DeviceLib/built-ins/ext_native_math.cpp index 965bca2a76..083019362d 100644 --- a/SYCL/DeviceLib/built-ins/ext_native_math.cpp +++ b/SYCL/DeviceLib/built-ins/ext_native_math.cpp @@ -7,8 +7,9 @@ // OpenCL CPU driver does not support cl_khr_fp16 extension for this reason this // test is compiled with the -fsycl-device-code-split flag -#include #include +#include +#include template void assert_out_of_bound(T val, T lower, T upper) { assert(sycl::all(lower < val && val < upper)); diff --git a/SYCL/Matrix/element_wise_all_ops_cuda.cpp b/SYCL/Matrix/element_wise_all_ops_cuda.cpp index 69976fa7e4..c73da53888 100644 --- a/SYCL/Matrix/element_wise_all_ops_cuda.cpp +++ b/SYCL/Matrix/element_wise_all_ops_cuda.cpp @@ -10,7 +10,7 @@ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX=3 %s -o %t.out // RUN: %t.out -#include +#include using namespace sycl; using namespace sycl::ext::oneapi::experimental::matrix; diff --git a/SYCL/Matrix/element_wise_wi_marray.cpp b/SYCL/Matrix/element_wise_wi_marray.cpp index 6ab3947ed9..e4188a567a 100644 --- a/SYCL/Matrix/element_wise_wi_marray.cpp +++ b/SYCL/Matrix/element_wise_wi_marray.cpp @@ -10,11 +10,12 @@ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xsycl-target-backend --cuda-gpu-arch=sm_80 -DSYCL_EXT_ONEAPI_MATRIX=3 %s -o %t.out // RUN: %t.out +#include #include using namespace sycl; +using namespace sycl::ext::oneapi::experimental; using namespace sycl::ext::oneapi::experimental::matrix; -using sycl::ext::oneapi::experimental::bfloat16; #define SG_SZ 32 diff --git a/SYCL/Matrix/joint_matrix_tensorcore.cpp b/SYCL/Matrix/joint_matrix_tensorcore.cpp index 2b5078d415..664944bacd 100644 --- a/SYCL/Matrix/joint_matrix_tensorcore.cpp +++ b/SYCL/Matrix/joint_matrix_tensorcore.cpp @@ -7,11 +7,11 @@ // supported for the Nvidia matrix extension, although some JIT optimizations // are performed at the level of the PTX assembly code. -#include +#include using namespace sycl; +using namespace sycl::ext::oneapi::experimental; using namespace sycl::ext::oneapi::experimental::matrix; -using sycl::ext::oneapi::experimental::bfloat16; constexpr float bf16_eps = 0.00390625; // Example usage of Nvidia matrix multiply. diff --git a/SYCL/Printf/char.cpp b/SYCL/Printf/char.cpp index 7cdca04ccf..6469ae25cf 100644 --- a/SYCL/Printf/char.cpp +++ b/SYCL/Printf/char.cpp @@ -25,7 +25,8 @@ // CHECK: literal strings: s=Hello World! // CHECK_DISABLED: non-literal strings: s=Hello, World! ls= -#include +#include +#include #include diff --git a/SYCL/Printf/double.cpp b/SYCL/Printf/double.cpp index 446e2d7a88..11954860f7 100644 --- a/SYCL/Printf/double.cpp +++ b/SYCL/Printf/double.cpp @@ -28,7 +28,8 @@ #include -#include +#include +#include #include "helper.hpp" diff --git a/SYCL/Printf/float.cpp b/SYCL/Printf/float.cpp index 7dcaa39276..7e95403c03 100644 --- a/SYCL/Printf/float.cpp +++ b/SYCL/Printf/float.cpp @@ -31,7 +31,8 @@ #include -#include +#include +#include #include "helper.hpp" diff --git a/SYCL/Printf/int.cpp b/SYCL/Printf/int.cpp index c613bf3fd6..63c702dccc 100644 --- a/SYCL/Printf/int.cpp +++ b/SYCL/Printf/int.cpp @@ -20,7 +20,8 @@ // RUN: %GPU_RUN_PLACEHOLDER %t.constant.out %GPU_CHECK_PLACEHOLDER // RUN: %ACC_RUN_PLACEHOLDER %t.constant.out %ACC_CHECK_PLACEHOLDER -#include +#include +#include #include "helper.hpp" diff --git a/SYCL/Printf/long.cpp b/SYCL/Printf/long.cpp index b4cb14f411..f518600b79 100644 --- a/SYCL/Printf/long.cpp +++ b/SYCL/Printf/long.cpp @@ -20,7 +20,8 @@ // RUN: %GPU_RUN_PLACEHOLDER %t.constant.out %GPU_CHECK_PLACEHOLDER // RUN: %ACC_RUN_PLACEHOLDER %t.constant.out %ACC_CHECK_PLACEHOLDER -#include +#include +#include #include "helper.hpp" diff --git a/SYCL/Printf/mixed-address-space.cpp b/SYCL/Printf/mixed-address-space.cpp index 37cb83ce68..430b0275de 100644 --- a/SYCL/Printf/mixed-address-space.cpp +++ b/SYCL/Printf/mixed-address-space.cpp @@ -12,7 +12,8 @@ // CHECK: Constant addrspace literal // CHECK: Generic addrspace literal -#include +#include +#include #include "helper.hpp" diff --git a/SYCL/Printf/percent-symbol.cpp b/SYCL/Printf/percent-symbol.cpp index 5a23a7f2bf..8c4ec8e5aa 100644 --- a/SYCL/Printf/percent-symbol.cpp +++ b/SYCL/Printf/percent-symbol.cpp @@ -23,7 +23,8 @@ // CHECK: %c %s %d %i %o %x %X %u // CHECK-NEXT: %f %F %e %E %a %A %g %G %n %p -#include +#include +#include #include