Visible to Intel only — GUID: GUID-32EE3BA5-BC7C-414C-A4B5-83197E11640B
Visible to Intel only — GUID: GUID-32EE3BA5-BC7C-414C-A4B5-83197E11640B
Before You Begin
Install and set up the Intel® DPC++ Compatibility Tool. Refer to Get Started with the Intel® DPC++ Compatibility Tool for installation and setup information.
Get Code Samples
Use the Intel® DPC++ Compatibility Tool code samples to get familiar with the migration process and tool features.
Each sample README provides detailed instructions for how to migrate the sample code.
Sample Project |
Description |
---|---|
The Vector Add sample shows how to migrate a simple program from CUDA* to SYCL*. You can use this sample to verify that your development environment is set up correctly to use Intel® DPC++ Compatibility Tool. |
|
The Folder Options sample shows how to migrate more complex projects and use tool options. |
|
The Rodinia Needleman-Wunsch sample demonstrates how to migrate a Make/CMake* project from CUDA to SYCL. |
Explore the complete list of oneAPI code samples in the oneAPI Samples Catalog (GitHub). These samples were designed to help you develop, offload, and optimize multiarchitecture applications targeting CPUs, GPUs, and FPGAs.
To access the samples:
Select a sample from the Intel® DPC++ Compatibility Tool category, using the oneapi-cli utility
Download the sample from GitHub*.
The Intel® oneAPI Base Toolkit Get Started Guides more information on downloading samples. See also:
Understand Emitted Warnings
During the migration of the files Intel® DPC++ Compatibility Tool identifies places in the code that may require your attention to make the code SYCL compliant or correct.
Intel® DPC++ Compatibility Tool inserts comments into the generated source files which are displayed as warnings in the output. For example:
/path/to/file.hpp:26:1: warning: DPCT1003:0: Migrated API does not return error code. (*,0) is inserted. You may need to rewrite this code.
// source code line for which warning was generated
^
For detailed information about a warning, refer to the Diagnostics Reference.