Created
June 6, 2024 16:49
-
-
Save M0nteCarl0/9dbce6f62f1a548189a85ed6b6788914 to your computer and use it in GitHub Desktop.
Intel DPC SYCL build .so and link to cpp application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#bin/sh | |
icpx -fPIC -c -fsycl sycl-lib.cc | |
icpx -fsycl -shared sycl-lib.o -o libsycl-lib.so | |
g++ -o sycl-test test-main.cc -L. -lsycl-lib | |
./sycl-test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment