Developer Guide and Reference

Contents

prefetch/noprefetch

Invites the compiler to issue or disable requests to prefetch data from memory. This pragma applies only to Intel® Advanced Vector Extensions 512 (Intel® AVX-512).

Syntax

#pragma prefetch
#pragma prefetch
*:hint
[
:
distance
]
#pragma prefetch
[
var1
[
:
hint1
[
:
distance1
]]
[
,
var2
[
:
hint2
[
:
distance2
]]]
...
]
#pragma noprefetch
[
var1
[
,
var2
]
...
]
Arguments
var
An optional memory reference (data to be prefetched)
hint
An optional hint to the compiler to specify the type of prefetch. Possible values:
  • 1
    : For integer data that will be reused
  • 2: For integer and floating point data that will be reused from L2 cache
  • 3:
    For data that will be reused from L3 cac