-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathhelp_advanced.txt
More file actions
74 lines (70 loc) · 7.27 KB
/
help_advanced.txt
File metadata and controls
74 lines (70 loc) · 7.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
USAGE: dpct.exe [options] [<source0> ... <sourceN>]
OPTIONS: Advanced
Advanced DPCT options
--format-range=<value> - Set the range of formatting.
The values are:
=all - Format all code.
=migrated - Only format the migrated code (default).
=none - Do not format any code.
--format-style=<value> - Set the formatting style.
The values are:
=custom - Use the coding style defined in the .clang-format file (default).
=llvm - Use the LLVM coding style.
=google - Use the Google coding style.
--migrate-build-script=<value> - EXPERIMENTAL: A comma-separated list of build script type(s) to be migrated.
By default, no build script is migrated.
The values are:
=CMake - Migrate the CMake file(s).
=Python - Migrate the python build script file(s) of PyTorch based project.
--no-dpcpp-extensions=<value> - A comma-separated list of extensions not to be used in migrated code.
By default, these extensions are used in migrated code.
The values are:
=bfloat16 - Disable the SYCL extensions for bfloat16.
=device_info - Disable the Intel extensions for device information, if supported by the compiler and the backend.
=enqueued_barriers - Disable the enqueued barriers extension.
=free-function-queries - Disable the free function query experimental extension that allows getting 'id', 'item', 'nd_item', 'group', and 'sub_group' instances globally.
=peer_access - Disable the peer access extension.
=assert - Disable the assert extension.
=queue_empty - Disable the queue empty extension.
=all - Disable all extensions listed in this option.
--rule-file=<file> - Specify the rule file for migration. Also, reference the predefined rules in the "extensions" directory in the root folder of the tool.
--use-dpcpp-extensions=<value> - A comma-separated list of extensions to be used in migrated code.
By default, these extensions are not used in migrated code.
=c_cxx_standard_library - Use std functions from the libdevice library (provided by Intel(R) oneAPI DPC++/C++ Compiler)
and C/C++ Standard Library to migrate functions which have no mapping in the SYCL standard.
If this value is used together with intel_device_math, the intel_device_math functions take
precedence.
=intel_device_math - Use sycl::ext::intel::math functions from the libdevice library (provided by Intel(R) oneAPI
DPC++/C++ Compiler) to migrate functions which have no mapping in the SYCL standard.
=all - Enable all DPC++ extensions listed in this option.
--use-experimental-features=<value> - A comma-separated list of experimental features to be used in migrated code.
By default, experimental features will not be used in migrated code.
The values are:
=free-function-queries - DEPRECATED : Experimental extension that allows getting 'id', 'item', 'nd_item', 'group', and
'sub_group' instances globally. Deprecate this option as the feature is turned on by default.
=local-memory-kernel-scope-allocation - Experimental extension that allows allocation of local memory objects at the kernel
functor scope
=logical-group - Experimental helper function used to logically group work-items.
=root-group - Experimental extension that allows use of root group class and relative API.
=nd_range_barrier - DEPRECATED : Experimental helper function used to help cross-group synchronization during migration. Please use the following option instead: --use-experimental-features=root-group.
=user-defined-reductions - Experimental extension that allows user-defined reductions.
=masked-sub-group-operation - Experimental helper function used to execute sub-group operation with mask.
=dpl-experimental-api - Experimental extension that allows use of experimental oneDPL APIs.
=occupancy-calculation - Experimental helper function used to calculate occupancy.
=matrix - Experimental extension that allows use of matrix extension like class joint_matrix.
=bfloat16_math_functions - Experimental extension that allows use of bfloat16 math functions.
=bindless_images - Experimental extension that allows use of bindless images APIs.
=graph - Experimental extension that allows use of SYCL Graph APIs.
=non-uniform-groups - Experimental extension that allows use of non-uniform groups.
=device_global - Experimental extension that allows device scoped memory allocations into SYCL that can
be accessed within a kernel using syntax similar to C++ global variables.
=virtual_mem - Experimental extension that allows for mapping of an address range onto multiple allocations of physical memory.
=in_order_queue_events - Experimental extension that allows placing the event from the last command submission into the queue and setting an external event as an implicit dependence on the next command submitted to the queue.
=non-stdandard-sycl-builtins - Experimental extension that allows use of non standard SYCL builtin functions.
=prefetch - Experimental extension that allows use of SYCL prefetch APIs.
=level_zero - Experimental migration feature that enables the use of Level Zero APIs to migrate target code, like CUDA Inter-Process Communication (IPC) APIs.
=async_alloc - Experimental extension that allows use of SYCL async allocation APIs.
=all - Enable all experimental extensions listed in this option.
<source0> ... Paths of input source files. These paths are looked up in the compilation database.
See Diagnostics Reference to resolve warnings and complete the migration:
https://oneapi-src.github.io/SYCLomatic/dev_guide/reference/diagnostics-reference.html