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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
|
.TH ispc 1
.SH NAME
ispc \- Intel Implicit SPMD Program Compiler
.SH SYNOPSIS
.B ispc
.RI [ options ] " file"
.SH DESCRIPTION
.B ispc
is a compiler for a variant of the C programming language, with extensions for
single program, multiple data programming. Under the SPMD model, the programmer
writes a program that generally appears to be a regular serial program, though
the execution model is actually that a number of program instances execute in
parallel on the hardware.
.SH OPTIONS
.TP
.BR \-\-addressing " {" "32,64" }
Select
.B 32\- or
.BR 64\- bit
addressing. (Note that
.BR 32\- bit
addressing calculations are done by default, even on
.BR 64\- bit
target architectures.)
.TP
.BR \-\-arch " {" "x86, x86\-64, arm, aarch64, wasm32" }
Select target architecture
.TP
.B \-\-colored\-output
Always use terminal colors in error/warning messages
.TP
.BI \-\-cpu " <type>"
An alias for
.BI \-\-device " <type>"
switch
.TP
.BI \-D " <foo>"
#define given value when running preprocessor
.TP
.BI \-\-dev\-stub " <filename>"
Emit device\-side offload stub functions to file
.TP
.BI \-\-device " <type>"
Select target device
.IR <type>
= {
.B x86\-64
,
.B atom
(synonyms:
.B bonnell
),
.B core2, penryn, corei7
(synonyms:
.B nehalem
),
.B btver2
(synonyms:
.B ps4
),
.B corei7\-avx
(synonyms:
.B sandybridge
),
.B core\-avx\-i
.B
(synonyms:
.B ivybridge
),
.B core\-avx2
(synonyms:
.B haswell
),
.B broadwell, skylake, knl, skx, icelake\-client
(synonyms:
.B icl
),
.B slm
(synonyms:
.B silvermont
),
.B icelake\-server
(synonyms:
.B icx
),
.B tigerlake
(synonyms:
.B tgl
),
.B alderlake
(synonyms:
.B adl
),
.B sapphirerapids
(synonyms:
.B spr
),
.B znver1, znver2
(synonyms:
.B ps5
),
.B znver3, cortex\-a9, cortex\-a15, cortex\-a35, cortex\-a53, cortex\-a57,
.B apple\-a7, apple\-a10, apple\-a11, apple\-a12, apple\-a13, apple\-a14
}
.TP
.B \-\-dllexport
Make non\-static functions DLL exported. Windows target only
.TP
.BR \-\-dwarf\-version " {" "2,3,4" }
Generate source\-level debug information with given DWARF version (triggers
.B \-g
). Ignored for Windows target
.TP
.B \-E
Run only the preprocessor
.TP
.B \-\-emit\-asm
Generate assembly language file as output
.TP
.B \-\-emit\-llvm
Emit LLVM bitcode file as output
.TP
.B \-\-emit\-llvm\-text
Emit LLVM bitcode file as output in textual form
.TP
.B \-\-emit\-obj
Generate object file file as output (default)
.TP
.B \-\-enable\-llvm\-intrinsics
Enable experimental feature to call LLVM intrinsics from ISPC source code
.TP
.BI \-\-error\-limit " <value>"
Limit maximum number of errors emitting by ISPC to
.I <value>
.TP
.BI \-\-force\-alignment " <value>"
Force alignment in memory allocations routine to be
.I <value>
.TP
.B \-g
Generate source\-level debug information
.TP
.B \-\-help
Print help
.TP
.B \-\-help\-dev
Print help for developer options
.TP
.BI \-\-host\-stub " <filename>"
Emit host\-side offload stub functions to file
.TP
.BI \-h " <name>" " / \-\-header\-outfile" " <name>"
Output filename for header
.TP
.BI \-I " <path>"
Add <path> to #include file search path
.TP
.B \-\-ignore\-preprocessor\-errors
Suppress errors from the preprocessor
.TP
.B \-\-instrument
Emit instrumentation to gather performance data
.TP
.BI \-\-math\-lib " <option>"
Select math library
.RS 8
.TP
.B default
Use ispc's built\-in math functions
.TP
.B fast
Use high\-performance but lower\-accuracy math functions
.TP
.B svml
Use the Intel(r) SVML math libraries
.TP
.B system
Use the system's math library (*may be quite slow*)
.RE
.TP
.BI \-MMM " <filename>"
Write #include dependencies to given file.
.TP
.B \-M
Output a rule suitable for
.B make
describing the dependencies of the main source file to stdout.
.TP
.BI \-MF " <filename>"
When used with
.B \-M,
specifies a file to write the dependencies to.
.TP
.BI \-MT " <filename>"
When used with
.B \-M,
changes the target of the rule emitted by dependency generation.
.TP
.B \-\-no\-omit\-frame\-pointer
Disable frame pointer omission. It may be useful for profiling
.TP
.B \-\-nostdlib
Don't make the ispc standard library available
.TP
.B \-\-no\-pragma\-once
Don't use #pragma once in created headers
.TP
.B \-\-nocpp
Don't run the C preprocessor
.TP
.BI \-o <name>/\-\-outfile " <name>"
Output filename (may be "\-" for standard output)
.TP
.B \-O0/\-O(1/2/3)
Set optimization level. Default behavior is to optimize for speed.
.RS 8
.TP
.B \-O0
Optimizations disabled.
.TP
.B \-O1
Optimization for size.
.TP
.B \-O2/O3
.RE
.TP
.BI \-\-opt " <option>"
Set optimization option
.RS 8
.TP
.B disable\-assertions
Remove assertion statements from final code.
.TP
.B disable\-fma
Disable 'fused multiply\-add' instructions (on targets that support them)
.TP
.B disable\-loop\-unroll
Disable loop unrolling.
.TP
.B disable\-zmm
Disable using zmm registers for avx512 targets in favour of ymm. This also affects ABI.
.TP
.B fast\-masked\-vload
Faster masked vector loads on SSE (may go past end of array)
.TP
.B fast\-math
Perform non\-IEEE\-compliant optimizations of numeric expressions
.TP
.B force\-aligned\-memory
Always issue "aligned" vector load and store instructions
.RE
.TP
.B \-\-pic
Generate position\-independent code. Ignored for Windows target
.TP
.B \-\-quiet
Suppress all output
.TP
.B \-\-support\-matrix
Print full matrix of supported targets, architectures and OSes
.TP
.BI \-\-target " <t>"
Select target ISA and width.
.I <t>
={
.B sse2\-i32x4, sse2\-i32x8, sse4\-i8x16, sse4\-i16x8, sse4\-i32x4, sse4\-i32x8,
.B avx1\-i32x4, avx1\-i32x8, avx1\-i32x16, avx1\-i64x4, avx2\-i8x32,
.B avx2\-i16x16, avx2\-i32x4, avx2\-i32x8, avx2\-i32x16, avx2\-i64x4,
.B avx512knl\-x16, avx512skx\-x4, avx512skx\-x8, avx512skx\-x16, avx512skx\-x32,
.B avx512skx\-x64, neon\-i8x16, neon\-i16x8, neon\-i32x4, neon\-i32x8,
.B wasm\-i32x4
}
.TP
.BI \-\-target\-os " <os>"
Select target OS.
.I <os>
={
.B linux, custom_linux, freebsd, android, web
}
.TP
.B \-\-time\-trace
Turn on time profiler. Generates JSON file based on output filename.
.TP
.BI \-\-time\-trace\-granularity " <value>"
Minimum time granularity (in microseconds) traced by time profiler.
.TP
.B \-\-vectorcall/\-\-no\-vectorcall
Enable/disable vectorcall calling convention on Windows (x64 only). Disabled by
default
.TP
.B \-\-version
Print ispc version
.TP
.B \-\-werror
Treat warnings as errors
.TP
.B \-\-woff
Disable warnings
.TP
.B \-\-wno\-perf
Don't issue warnings related to performance\-related issues
.TP
.BI \-\-x86\-asm\-syntax " <option>"
Select style of code if generating assembly
.RS 8
.TP
.B
intel
Emit Intel\-style assembly
.TP
.B
att
Emit AT&T\-style assembly
.RE
.SH SEE ALSO
https://ispc.github.io/
.SH AUTHOR
.B ispc
is written by Intel Corporation.
This manual page was written by
.MT mmyangfl@\:gmail.com
Yangfl
.ME
for the Debian Project (and may be used by others).
|