Altera_Forum
Honored Contributor
10 years agoundefined reference to `aocl_mmd_reprogram'
Dear all,
I'm just starting my journey into OpenCL for FPGAs, with a Terasic DE1SoC board. Before even trying to run on the card, I'd first like to emulate a basic kernel (hello_world) on my Linux (SLC6) machine (while the original Makefile provided with the kit obviously wants to target the board processor, as far as I understand) I'm in fact running in a problem with the link of the host part. That may be due to a basic misunderstanding on my part, so please bear with me ;-) g++ main.o AOCL_Utils.o -o hello_world -L/root/altera/14.1/hld/host/linux64/lib -lalteracl -lacl_emulator_kernel_rt -lalterahalmmd -lelf -lrt -ldl -lstdc++ /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_reprogram' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_set_status_handler' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_set_interrupt_handler' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_shared_mem_free' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_get_offline_info' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_open' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_read' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_shared_mem_alloc' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_write' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_yield' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_copy' /root/altera/14.1/hld/host/linux64/lib/libalterahalmmd.so: undefined reference to `aocl_mmd_get_info' I don't understand where I am supposed to find the aocl_mmd symbols ? Thanks for any hint, > aoc --version Altera SDK for OpenCL, 64-Bit Offline Compiler Version 14.1.0 Build 186 Copyright (C) 2014 Altera Corporation > aocl version aocl 14.1.0.186 (Altera SDK for OpenCL, Version 14.1.0 Build 186, Copyright (C) 2014 Altera Corporation) > uname -a Linux 2.6.32-504.16.2.el6.x86_64# 1 SMP Tue Apr 21 21:44:51 CEST 2015 x86_64 x86_64 x86_64 GNU/Linux