We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a998806 commit 1673166Copy full SHA for 1673166
sycl/test-e2e/Basic/swizzle_op.cpp
@@ -208,7 +208,7 @@ int main() {
208
abc.y() = cba.s1();
209
abc.z() = cba.s2();
210
abc.w() = cba.s3();
211
- if ((cba.x() == abc.x())) {
+ if (cba.x() == abc.x()) {
212
abc.xy() = abc.xy() * 3;
213
214
B[0] = abc.x();
@@ -262,7 +262,7 @@ int main() {
262
myQueue.submit([&](handler &cgh) {
263
auto B = b.get_access<access::mode::read_write>(cgh);
264
cgh.parallel_for<class test_10>(
265
- range<1>{2}, [=](id<1> ID) { B[ID] = int3{ID[0]} / B[ID]; });
+ range<1>{2}, [=](id<1> ID) { B[ID] = int3{(int3)ID[0]} / B[ID]; });
266
});
267
}
268
assert(FF[0] == 0);
0 commit comments