Developer Guide

FPGA Optimization Guide for Intel® oneAPI Toolkits

ID 767853
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

FPGA Accessor Properties

The following table summarizes FPGA accessor properties:

FPGA Accessor Properties
Property Description Example
buffer_location<index>

Instructs the host to allocate a buffer to a specific global memory type.

It identifies the index of the global memory type in the board_spec.xml file of your Custom Platform. The index starts at 0 and follows the order in which the global memory appears in the board_spec.xml. If you do not specify the buffer_location property, the host allocates the buffer to the default memory type automatically.

ext::oneapi::accessor_property_list PL{ext::intel::buffer_location<2>};
accessor accessor(buffer, cgh, read_only, PL);
no_alias

Notifies the compiler that all modifications to the memory locations accessed (directly or indirectly) by an accessor during kernel execution is done through the same accessor (directly or indirectly) and not by any other accessor or USM pointer in the kernel. This is an unchecked assertion by the programmer and results in an undefined behavior if it is violated.

ext::oneapi::accessor_property_list PL{ext::oneapi::no_alias};
accessor accessor(buffer, cgh, read_only, PL);