================ @@ -0,0 +1,78 @@ +// REQUIRES: any-device + +// Run a program whose kernels come from two translation units. With +// -fno-sycl-rdc each translation unit is finalized into a device binary of its +// own, so both binaries have to be registered and both kernels have to be found +// at run time. +// The second translation unit is this same source compiled with -DSECOND_TU. +// RUN: %clangxx -fsycl -fno-sycl-rdc -c %s -o %t.nordc.main.o +// RUN: %clangxx -fsycl -fno-sycl-rdc -DSECOND_TU -c %s -o %t.nordc.second.o +// RUN: %clangxx -fsycl %t.nordc.main.o %t.nordc.second.o -o %t.nordc.out ---------------- KseniyaTikhomirova wrote:
As approach -l/-L should work for libsycl linking, we used this approach before -fsycl was propertly implemented. Although lit integration was removed in this commit https://github.com/llvm/llvm-project/commit/4c5b4f40c4ac77f1b50a90451fd040356748ac6a#diff-fb364ee5e8d7b9e55b63b33518cf99ca0fd94a2fd475f4abbf1997074eb53b99 as unused. So %sycloptions should be restored then https://github.com/llvm/llvm-project/pull/218089 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
