SWDEV-280473 - Support HSAIL shared library build
This change makes HSAIL usage similar to that of Comgr. By default, the runtime will statically link against it, however if HSAIL_DYN_DLL is defined, then the runtime will try to dynamically load HSAIL. Currently stick to statically linking to HSAIL. In a feature patch the dynamic loading behaviour will be enabled. Change-Id: I6a78a4375975cf847f236b200404c8cf941d012b
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
#include "devkernel.hpp"
|
||||
#include "amdocl/cl_profile_amd.h"
|
||||
#if defined(WITH_COMPILER_LIB)
|
||||
#include "acl.h"
|
||||
#include "hsailctx.hpp"
|
||||
#endif
|
||||
#include "hwdebug.hpp"
|
||||
#include "devsignal.hpp"
|
||||
@@ -1762,6 +1762,9 @@ class Device : public RuntimeObject {
|
||||
//! Checks if OCL runtime can use code object manager for compilation
|
||||
bool ValidateComgr();
|
||||
|
||||
//! Checks if OCL runtime can use hsail for compilation
|
||||
bool ValidateHsail();
|
||||
|
||||
virtual bool IpcCreate(void* dev_ptr, size_t* mem_size, void* handle, size_t* mem_offset) const {
|
||||
ShouldNotReachHere();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user