Skip to content

A simple SYCL application using CMake building system

Notifications You must be signed in to change notification settings

Luigi-Crisci/SYCL-sample-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYCL Cmake sample app

A simple SYCL application using CMake building system.

Build

Requirements

  • Cmake 3.22 or above
  • One of the following SYCL compilers
    • hipSYCL
    • DPC++
  • Gcc/clang

To configure the project, create a build directory in the main folder, go inside it and type

cmake .. -DSYCL_BACKEND=[hipSYCL | DPCPP] -DSYCL_DEVICE=[gpu | cpu | host]

If you're using DPCPP, don't forget to set the correct triple for your device using

-DCMAKE_CXX_FLAGS=" -fsycl-targets=YOUR_TRIPLE"

And then build it with:

cmake --build ./ -j=$(nproc)

A file called sample_app will be placed in the build folder

About

A simple SYCL application using CMake building system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published