Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion SYCL/ESIMD/regression/dgetrf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// REQUIRES: gpu
// REQUIRES: gpu, aspect-fp64
// UNSUPPORTED: cuda || hip
// RUN: %clangxx -fsycl %s -I%S/.. -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out 3 2 1
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/regression/dgetrf_8x8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu
// REQUIRES: gpu, aspect-fp64
// UNSUPPORTED: cuda || hip
// RUN: %clangxx -fsycl %s -I%S/.. -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out 1
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/regression/dgetrf_ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

// REQUIRES: gpu
// REQUIRES: gpu, aspect-fp64
// UNSUPPORTED: cuda || hip
// RUN: %clangxx -fsycl -DUSE_REF %s -I%S/.. -o %t.ref.out
// RUN: %GPU_RUN_PLACEHOLDER %t.ref.out 3 2 1
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/spec_const/spec_const_double.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// REQUIRES: gpu
// REQUIRES: gpu, aspect-fp64
// RUN: %clangxx -fsycl -I%S/.. %s -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// UNSUPPORTED: cuda || hip
Expand Down
16 changes: 8 additions & 8 deletions SYCL/KernelParams/union_kernel_param.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ union TestUnion {
public:
int myint;
char mychar;
double mydouble;
float myfloat;

TestUnion() { mydouble = 0.0; };
TestUnion() { myfloat = 0.0f; };
};

int main(int argc, char **argv) {
TestUnion x;
x.mydouble = 5.0;
double mydouble = 0.0;
x.myfloat = 5.0f;
float myfloat = 0.0f;

sycl::queue queue;
{
sycl::buffer<double, 1> buf(&mydouble, 1);
sycl::buffer<float, 1> buf(&myfloat, 1);
queue.submit([&](sycl::handler &cgh) {
auto acc = buf.get_access<sycl::access::mode::read_write>(cgh);
cgh.single_task<class test>([=]() { acc[0] = x.mydouble; });
cgh.single_task<class test>([=]() { acc[0] = x.myfloat; });
});
}

if (mydouble != 5.0) {
printf("FAILED\nmydouble = %d\n", mydouble);
if (myfloat != 5.0f) {
printf("FAILED\nmyfloat = %d\n", myfloat);
return 1;
}
return 0;
Expand Down
2 changes: 1 addition & 1 deletion SYCL/SubGroup/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main() {

/* Basic sub-group functionality is supported as part of cl_khr_subgroups
* extension or as core OpenCL 2.1 feature. */
if (!core_sg_supported(Device)) {
if (!core_sg_supported(Device) || !Device.has(aspect::fp64)) {
std::cout << "Skipping test\n";
return 0;
}
Expand Down