-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL] Add implicit rpath to libsycl directory #6306
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
Changes from all commits
cd601cd
426ee84
32cce35
de1b951
8505330
911a120
1a41997
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// RUN: %clang -### -fsycl %s 2>&1 | FileCheck --check-prefix=CHECK-DEFAULT %s | ||
|
||
// CHECK-DEFAULT: "-rpath" | ||
|
||
// RUN: %clang -### -fsycl \ | ||
// RUN: -fsycl-implicit-rpath %s 2>&1 | FileCheck --check-prefix=CHECK-FLAG %s | ||
|
||
// CHECK-FLAG: "-rpath" | ||
|
||
// RUN: %clang -### -fsycl \ | ||
// RUN: -fno-sycl-implicit-rpath %s 2>&1 | FileCheck --check-prefix=CHECK-NOFLAG %s | ||
|
||
// CHECK-NOFLAG-NOT: "-rpath" | ||
|
||
// REQUIRES: system-linux | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -338,6 +338,11 @@ and not recommended to use in production environment. | |
|
||
NOTE: This flag is currently only supported with the CUDA and HIP targets. | ||
|
||
**`-fsycl-implicit-rpath, -fno-sycl-implicit-rpath`** | ||
|
||
Instructs the compiler to add the directory within the clang build or | ||
installation containing the SYCL library to the `RPATH` of generated | ||
binaries when building in SYCL mode. This flag is enabled by default. | ||
Comment on lines
+343
to
+345
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which path is going to be used if I have both of them: build and installation directories? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's tied to the clang binary, so it will point to the associated
And when it comes to resolving which libraries to use |
||
|
||
**`-f[no-]sycl-esimd-force-stateless-mem`** [EXPERIMENTAL] | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.