Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Executtion error

Altera_Forum
Honored Contributor II
1,658 Views

Hi, 

 

I successfully compiled the sample kernel vecAdd.cl file. 

I also did a make on the Makefile.linux file. 

 

when I run the executable using command ./vecAdd_host 

 

I get the following error: 

 

$ ./vectorAdd_host  

PCIe-MMD Fatal: Version mismatch, expected 0 but read aaaaaaaa 

vectorAdd_host: acl_pcie_device.cpp:214: ACL_PCIE_DEVICE::ACL_PCIE_DEVICE(ACL_PCIE_BOARD*): Assertion `0' failed. 

Aborted 

 

 

 

 

How should I resolve this error? 

Thanks
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
854 Views

Given your other post about flash programming, I'm suspecting that the there isn't a valid OpenCL hardware image programmed into flash. Essentially for the OpenCL tools to work correctly there needs to be a valid OpenCL hardware image burned into flash so that the tools/runtime can communicate to the board.

0 Kudos
Altera_Forum
Honored Contributor II
854 Views

Hi, 

 

I am actually using the board remotely. 

I have confirmed that the board is from the Nallatech vendor. 

When I target the compilation to any of the two nallatech board package pcie385n_a7 or pcie385n_d5 using aoc --board <board package> command I get the following compilation error. 

 

$ aoc --board pcie385n_a7 -v ./vectorAdd.cl 

Error: Quartus compilation FAILED 

See quartus_sh_compile.log for the output log. 

 

 

I did look into the quartus_sh_compile.log file and I see the following error lines. Is there a way to resolve it ? 

I am using the system remotely with centos distribution and the RAM size is around 13 GB. 

 

------------------------------------------------------------------------------------------- 

*** Fatal Error: Segment Violation at 0x139840ffbc9 

Module: quartus_map 

Lock in use: 55 

Stack Trace: 

0x14d7f3: CDB_SGATE_NETLIST::dfs_visit_oterm(CDB_SGATE_OTERM*, _Dinkum_std::vector<CDB_SGATE_NODE*, MEM_STL_ALLOCATOR<CDB_SGATE_NODE*> >*, int*, bool, bool, _Dinkum_std::vector<CDB_SGATE_NODE*, MEM_STL_ALLOCATOR<CDB_SGATE_NODE*> >*) + 0x33 (db_cdb_sgate) 

0x14e375: CDB_SGATE_NETLIST::dfs_from_outputs(bool, bool, bool, _Dinkum_std::vector<CDB_SGATE_NODE*, MEM_STL_ALLOCATOR<CDB_SGATE_NODE*> >*) + 0x2e5 (db_cdb_sgate) 

0x13fb40: CDB_SGATE_NETLIST::dfs(CDB_IO_TYPE, bool, bool, bool) + 0x30 (db_cdb_sgate) 

0x13fe0e: CDB_SGATE_NETLIST::garbage_collect(bool) + 0x5e (db_cdb_sgate) 

0x14ffa7: CDB_SGATE_NETLIST::sweep() + 0x5f7 (db_cdb_sgate) 

0xf4c07: RTL_OPERATOR::cherry_pick_6lut_roms(CDB_SGATE_NETLIST*) + 0x2d7 (synth_opt) 

0xf8e2a: RTL_OPERATOR::family_aware_crack_muxes(CDB_SGATE_NETLIST*) + 0x8a (synth_opt) 

0x8ab81: RTL_OPERATOR::exit_process_muxes(CDB_SGATE_NETLIST*, CDB_SGATE_HIERARCHY*) + 0x51 (synth_opt) 

0x8ae32: RTL_OPERATOR::exit_cleaning(CDB_SGATE_NETLIST*, CDB_SGATE_HIERARCHY*, bool) + 0x112 (synth_opt) 

0x169b93: RTL_SCRIPT::call_common_rtl_fns(char const*, char const*, char const*) + 0xd33 (synth_opt) 

0x16666d: RTL_SCRIPT::call_named_function(char const*, char const*, char const*, int, int, int) + 0x2fd (synth_opt) 

0x168072: RTL_SCRIPT::process_script(CDB_SGATE_NETLIST*, CDB_SGATE_HIERARCHY*, BASEX_ELABORATE_INFO*, CMP_FACADE*, RTL_SCRIPT_ENUM, char const* (*) [3], int, RTL_SCRIPT_STEP*, RTL_SCRIPT_STEP*) + 0x5b2 (synth_opt) 

0x417ad: opt_process_netlist_scripted(CMP_FACADE*, CDB_SGATE_HIERARCHY*, BASEX_ELABORATE_INFO*, RTL_SCRIPT_ENUM, bool) + 0x35d (synth_opt) 

0x4256f: RTL_ROOT::process_sgate_netlist(CMP_FACADE*, CDB_SGATE_HIERARCHY*, BASEX_ELABORATE_INFO*, RTL_PASS_ENUM) + 0x39f (synth_opt) 

0x147fd2: SGN_SYNTHESIS::high_level_synthesis() + 0x112 (synth_sgn) 

0x148252: SGN_SYNTHESIS::process_current_stage() + 0x132 (synth_sgn) 

0x175b87: SGN_EXTRACTOR::synthesize_partition(unsigned long) + 0x467 (synth_sgn) 

0x176b57: SGN_EXTRACTOR::synthesis() + 0x1f7 (synth_sgn) 

0x17e98a: SGN_EXTRACTOR::synthesis_and_post_processing() + 0x31a (synth_sgn) 

0x17ebe1: sgn_qic_helper(CMP_FACADE*, _Dinkum_std::vector<_Dinkum_std::basic_string<char, _Dinkum_std::char_traits<char>, MEM_STL_ALLOCATOR<char> >, MEM_STL_ALLOCATOR<_Dinkum_std::basic_string<char, _Dinkum_std::char_traits<char>, MEM_STL_ALLOCATOR<char> > > >&) + 0x171 (synth_sgn) 

0x2ba51: qsyn_execute_sgn(CMP_FACADE*, _Dinkum_std::vector<_Dinkum_std::basic_string<char, _Dinkum_std::char_traits<char>, MEM_STL_ALLOCATOR<char> >, MEM_STL_ALLOCATOR<_Dinkum_std::basic_string<char, _Dinkum_std::char_traits<char>, MEM_STL_ALLOCATOR<char> > > >&, _Dinkum_std::basic_string<char, _Dinkum_std::char_traits<char>, MEM_STL_ALLOCATOR<char> > const&) + 0x421 (quartus_map) 

0x39b7c: QSYN_FRAMEWORK::execute_core() + 0x17c (quartus_map) 

0x3a8d7: QSYN_FRAMEWORK::execute() + 0xaa7 (quartus_map) 

0x179ee: qexe_standard_main(QEXE_FRAMEWORK*, QEXE_OPTION_DEFINITION const**, int, char const**) + 0x342 (comp_qexe) 

0x2111d: qsyn_main(int, char const**) + 0x6d (quartus_map)
0 Kudos
Altera_Forum
Honored Contributor II
854 Views

That's not enough RAM to compile for a Stratix V - A7 device. At a minimum I would target a system with 24GB of main memory and make sure that system isn't multitasking a bunch of other memory intensive applications during the compilation. I compile mostly on Windows 7 and see my system memory requirements peak at around 22GB on some kernels targetting that board so compiling on a 32GB machine would be safer.

0 Kudos
Altera_Forum
Honored Contributor II
854 Views

 

--- Quote Start ---  

Hi, 

 

I successfully compiled the sample kernel vecAdd.cl file. 

I also did a make on the Makefile.linux file. 

 

when I run the executable using command ./vecAdd_host 

 

I get the following error: 

 

$ ./vectorAdd_host  

PCIe-MMD Fatal: Version mismatch, expected 0 but read aaaaaaaa 

vectorAdd_host: acl_pcie_device.cpp:214: ACL_PCIE_DEVICE::ACL_PCIE_DEVICE(ACL_PCIE_BOARD*): Assertion `0' failed. 

Aborted 

 

 

 

 

How should I resolve this error? 

Thanks 

--- Quote End ---  

 

 

 

Hello,  

 

Are you using $aocl program vectroadd.aocx to burn .Sof into fpga directly? 

 

Have you solved this problem? I am facing the same one? Need your help! Thanks!! 

 

Yuxuan
0 Kudos
Reply