Updating the hardware image on the fpga, Querying the device name of your fpga board, Programming the flash memory of an fpga on linux – Altera RTE for OpenCL User Manual
Page 26: Updating the hardware image on the fpga -7, Querying the device name of your fpga board -7

Related Information
•
Installing the Cyclone V SoC Development Kit
on page 4-16
•
Setting the Environment Variables on Big-Endian Systems
•
Querying the Device Name of Your FPGA Board
on page 3-7
•
Setting the Environment Variables for Linux
on page 3-2
Updating the Hardware Image on the FPGA
If applicable, before you execute an OpenCL kernel program on the FPGA, ensure that the flash memory
of the FPGA contains a hardware image created using a current version of the OpenCL software.
Remember: If your Custom Platform requires that you preload a valid OpenCL image into the flash
memory, for every major release of the Altera Complete Design Suite, program the flash
memory of the FPGA with a hardware image compatible with the current version of the
software.
Querying the Device Name of Your FPGA Board
Some AOCL utility commands require you to specify the device name (
you query a list of accelerator boards, the RTE produces a list of installed devices on your machine in the
order of their device names.
• To query a list of installed devices on your machine, type
aocl diagnose
at a command prompt.
The software generates an output that resembles the example shown below:
aocl diagnose: Running diagnostic from ALTERAOCLSDKROOT/board/
Verified that the kernel mode driver is installed on the host machine.
Using board package from vendor:
machine ...
device_name Status Information
acl0 Passed
at Gen 2 with 8 lanes.
FPGA temperature=43.0 degrees C.
acl1 Passed
PCIe dev_id =
at Gen 2 with 8 lanes.
FPGA temperature = 35.0 degrees C.
Found 2 active device(s) installed on the host machine, to perform a full
diagnostic on a specific device, please run aocl diagnose
DIAGNOSTIC_PASSED
Programming the Flash Memory of an FPGA on Linux
By default, you configure an FPGA using the hardware image stored in the flash memory of the device.
When there is no power, the FPGA retains the hardware configuration file in the flash memory. When
OCL005-15.0.0
2015.05.04
Updating the Hardware Image on the FPGA
3-7
Getting Started with the Altera RTE for OpenCL for x86_64 Linux and 64-Bit Linux Big-Endian System
Altera Corporation