![]() ![]() IntelDPCPP is in CMake's search path after running setvars.sh on Linux or setvars.bat on Windows. The find_package directive, tells CMake to use the IntelDPCPP module distributed with the oneAPI distribution. Projects that also use C, Fortran, or other languages can list the languages used them in the LANGUAGES parameter.Īpplications not using pre-compiled header files might work with CMake 3.21.0 on Windows. The project CMake directive tells CMake the name of this project and that it uses C++. For Windows the minimum required version is 3.23.0. The minimum required CMake version for Linux is 3.20.5. # CMake 3.20.5 is the minimum recommended for IntelLLVM on Linux # need at least CMake 3.23 for IntelLLVM support of IntelDPCPP package on Windows ![]() The following CMakeLists.txt builds the DPC++ application in simple.cpp for either Windows or Linux with the minimum supported CMake version for each platform. Refer to the package for more information.ĬMake is supported on the Windows and Linux command line. The heterogeneous compilation configuration package exposes other variables that may be required.Run CMake and build your applications as normal.See the Linux and Windows sections above for specific settings. Select the appropriate compilers for C or C++.The package directory is found in the parent directory of the icx bin directory. The heterogeneous compilation configuration package ( IntelDPCPPConfig.cmake) is shipped with the compiler. Add the following snippets to your project’s CMakeLists.txt:.Use the following steps to enable the compiler for your project: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |