Split libHSAIL and libHSAIL-AMD (HSA Changes)

[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1223723]


[ROCm/ROCR-Runtime commit: d8e67d962b]
Este commit está contenido en:
Nikolay Haustov [TEXT]
2015-12-28 10:00:43 -05:00
padre 6445dcac80
commit 275cb22707
Se han modificado 2 ficheros con 5 adiciones y 0 borrados
@@ -1,4 +1,5 @@
#include "hsa_base_util.h"
#include "HSAILAmdExt.h"
void HSA_UTIL::GetHsailNameAndKernelName(char * file_name, char *kernel_name)
@@ -55,6 +56,7 @@ bool HSA_UTIL::HsaInit()
err = hsa_queue_create(device, queue_size, HSA_QUEUE_TYPE_MULTI, NULL, NULL, 0, 0, &command_queue);
check(Creating the queue, err);
amd::hsail::registerExtensions();
if (!tool.assembleFromFile(hail_file_name)) {
std::cout << tool.output();
return false;
@@ -11,6 +11,7 @@
#include "hsa.h"
#include "hsa_rsrc_factory.hpp"
#include "hsa_ext_finalize.h"
#include "HSAILAmdExt.h"
#include "common.hpp"
@@ -317,6 +318,8 @@ bool HsaRsrcFactory::LoadAndFinalize(AgentInfo *agent_info,
check("Error in Finding the Symbol Offset for the Kernel", status);
*/
amd::hsail::registerExtensions();
// Copy handle of Brig object
hsa_ext_module_t brig_module_v3;
if (!tool.assembleFromFile(brig_path)) {