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*


[ROCm/hip commit: 23e9968752]
Esse commit está contido em:
Aaron Enye Shi
2019-03-06 18:27:28 +00:00
commit 4b87bd25e8
2 arquivos alterados com 5 adições e 4 exclusões
+2 -2
Ver Arquivo
@@ -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() {