Split libHSAIL and libHSAIL-AMD (HSA Changes)

[git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1223723]
This commit is contained in:
Nikolay Haustov [TEXT]
2015-12-28 10:00:43 -05:00
parent 2f0425d354
commit d8e67d962b
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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;
+3
View File
@@ -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)) {