Unified memory sharing 7/n

Move extension name to a separate file

Related-To: NEO-3771
Change-Id: I0c18b0e850e14102936d303d03b8b0e03a22e21a
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2019-11-14 11:40:58 +01:00
committed by sys_ocldev
parent 47645d6003
commit 280b66fb97
3 changed files with 16 additions and 4 deletions

View File

@@ -17,3 +17,5 @@ set(RUNTIME_SRCS_SHARINGS_UNIFIED
target_sources(${NEO_STATIC_LIB_NAME} PRIVATE ${RUNTIME_SRCS_SHARINGS_UNIFIED})
set_property(GLOBAL PROPERTY RUNTIME_SRCS_SHARINGS_UNIFIED ${RUNTIME_SRCS_SHARINGS_UNIFIED})
add_subdirectories()
target_sources(${SHARINGS_ENABLE_LIB_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/unified_enable_name.cpp)

View File

@@ -45,10 +45,6 @@ std::unique_ptr<SharingContextBuilder> UnifiedSharingBuilderFactory::createConte
return std::make_unique<UnifiedSharingContextBuilder>();
};
std::string UnifiedSharingBuilderFactory::getExtensions() {
return "cl_intel_unified_sharing ";
}
void *UnifiedSharingBuilderFactory::getExtensionFunctionAddress(const std::string &functionName) {
return nullptr;
}

View File

@@ -0,0 +1,14 @@
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/sharings/unified/enable_unified.h"
namespace NEO {
std::string UnifiedSharingBuilderFactory::getExtensions() {
return "";
}
} // namespace NEO