ACPP_TARGETS

在 4.5 版被加入.

備註

Experimental. Gated by CMAKE_EXPERIMENTAL_SYCL.

這是一個 CMake 環境變數。其初始值取自呼叫進程的環境。

Default device target selection for the AdaptiveCpp SYCL compiler. CMake reads this variable when first enabling SYCL if CMAKE_SYCL_DEVICE_TARGETS is not defined. The selection is used for compiler identification and testing, and as the default for targets whose SYCL_DEVICE_TARGETS property is unset or empty. Subsequent configurations retain the detected default selection.

The value is a semicolon-separated list of compilation flows, each optionally followed by a colon and a comma-separated list of architectures. See SYCL_DEVICE_TARGETS for examples of AdaptiveCpp target names.

例如:

$ export ACPP_TARGETS='cuda.explicit-multipass:sm_80,sm_86;hip.explicit-multipass:gfx90a'

If this environment variable is not defined, CMake also checks HIPSYCL_TARGETS before using the compiler's installation default.