Fix hash_for undefined reference in hipTestConstant test

Issue: mismatch undefined symbols in different user env
  - Binary expects modified return value std::string&
  - Fails to match libhip_hcc.so: return value is std::string& but doesn't match modified C++ env
Fix: Change return value to char*, create new key std::string in header from char*
This commit is contained in:
Aaron Enye Shi
2019-03-06 18:27:28 +00:00
parent 250bd58254
commit 23e9968752
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -287,8 +287,8 @@ namespace hip_impl {
return hmod->executable;
}
const std::string& hash_for(hipModule_t hmod) {
return hmod->hash;
const char* hash_for(hipModule_t hmod) {
return hmod->hash.c_str();
}
hsa_agent_t this_agent() {