AnsweredAssumed Answered

Question about HSA-OpenMP-GCC-AMD

Question asked by rtgllc on May 8, 2015
Latest reply on May 12, 2015 by rtgllc

Hello again! Yesterday we built GCC from the hsa branch according to the rules given in the wiki:

 

https://github.com/HSAFoundation/HSA-OpenMP-GCC-AMD/wiki

 

Everything went rather smoothly until it came time to build the samples.  Using the appropriate environment variables, we get these errors:

 

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_region_get_info'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_init'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_signal_create'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_agent_iterate_regions'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_ext_program_create'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_signal_store_relaxed'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_executable_get_symbol'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_ext_program_add_module'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_signal_wait_acquire'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_ext_program_destroy'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_memory_allocate'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_status_string'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_iterate_agents'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_ext_program_finalize'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_executable_create'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_agent_get_info'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_queue_create'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_executable_freeze'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_queue_add_write_index_relaxed'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_executable_symbol_get_info'

/home/drmrlordx/hsailgcc/lib64/libgomp.so: undefined reference to `hsa_executable_load_code_object'


We're pretty sure that's from the second sample, matrixMultiply, though vectorCopy produces similar results.  Testing confirms that we have Okra and the HSA Runtime samples running correctly (Squares and vector_copy, respectively).  Does this have something to do with the fact that Okra is still dependent on an old version of the HSA Runtime? Or is something else going on here? Thanks!

Outcomes