Migrate a Project
- Prepare CUDA source for migrationStart with a running CUDA project that can be built and run. The Intel® DPC++ Compatibility Tool looks for CUDA headers, so make sure the headers are accessible to the tool.
- Migrate your projectTo generate annotated DPC++ code, run the Intel® DPC++ Compatibility Tool with the original source as input to the tool.For simple projects, you can use file-to-file migration, with the option to migrate all files at once or to migrate files one-by-one.For complex projects, you can utilize the Microsoft Visual Studio* project file or Make/Cmake file to build a compilation database, used to migrate the complete project.
- Review converted codeOutput files contain annotations to help migrate any remaining code that could not be automatically migrated. Inspect the converted code, review the annotations to help manually convert unmigrated code, and look for potential code improvements.
- Build the project with the Intel® oneAPI DPC++/C++ CompilerMake sure your newly migrated project compiles successfully with the Intel® oneAPI DPC++/C++ Compiler.