Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions sycl/include/sycl/detail/os_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,9 @@ namespace detail {

/// Groups the OS-dependent services.
class __SYCL_EXPORT OSUtil {
#if !defined(__INTEL_PREVIEW_BREAKING_CHANGES)
#ifdef _WIN32
// Access control is part of the mangling on Windows, have to preserve this
// for backward ABI compatibility.
public:
#endif
/// Returns a directory component of a path.
static std::string getDirName(const char *Path);
#endif

public:
/// Returns an absolute path to a directory where the object was found.
#if defined(__INTEL_PREVIEW_BREAKING_CHANGES)
__SYCL_DLL_LOCAL
#endif
static std::string getCurrentDSODir();

#ifdef __SYCL_RT_OS_WINDOWS
Expand Down
7 changes: 1 addition & 6 deletions sycl/source/detail/os_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ namespace sycl {
inline namespace _V1 {
namespace detail {

#if defined(__INTEL_PREVIEW_BREAKING_CHANGES)
[[maybe_unused]] static std::string getDirName(const char *Path)
#else
std::string OSUtil::getDirName(const char *Path)
#endif
{
[[maybe_unused]] static std::string getDirName(const char *Path) {
return fs::path(Path).parent_path().string();
}

Expand Down
4 changes: 0 additions & 4 deletions sycl/test/abi/sycl_abi_neutrality_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
// https://github.com/intel/llvm/pull/16178
// CHECK:_ZN4sycl3_V13ext5intel12experimental9pipe_base13get_pipe_nameB5cxx11EPKv
//
// https://github.com/intel/llvm/pull/16177
// CHECK:_ZN4sycl3_V16detail6OSUtil10getDirNameB5cxx11EPKc
// CHECK:_ZN4sycl3_V16detail6OSUtil16getCurrentDSODirB5cxx11Ev
//
// https://github.com/intel/llvm/pull/16176
// CHECK:_ZN4sycl3_V16opencl13has_extensionERKNS0_6deviceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
// CHECK:_ZN4sycl3_V16opencl13has_extensionERKNS0_8platformERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
Expand Down
2 changes: 0 additions & 2 deletions sycl/test/abi/sycl_symbols_linux.dump
Original file line number Diff line number Diff line change
Expand Up @@ -3378,11 +3378,9 @@ _ZN4sycl3_V16detail35sampledImageConstructorNotificationEPvS2_RKSt8optionalINS0_
_ZN4sycl3_V16detail36addHostUnsampledImageAccessorAndWaitEPNS1_30UnsampledImageAccessorImplHostE
_ZN4sycl3_V16detail36get_empty_interop_kernel_bundle_implERKNS0_7contextERKSt6vectorINS0_6deviceESaIS6_EE
_ZN4sycl3_V16detail37unsampledImageConstructorNotificationEPvS2_RKSt8optionalINS0_12image_targetEENS0_6access4modeEPKvjRKNS1_13code_locationE
_ZN4sycl3_V16detail6OSUtil10getDirNameB5cxx11EPKc
_ZN4sycl3_V16detail6OSUtil11alignedFreeEPv
_ZN4sycl3_V16detail6OSUtil12alignedAllocEmm
_ZN4sycl3_V16detail6OSUtil12getOSMemSizeEv
_ZN4sycl3_V16detail6OSUtil16getCurrentDSODirB5cxx11Ev
_ZN4sycl3_V16detail6OSUtil7makeDirEPKc
_ZN4sycl3_V16detail9join_implERKSt6vectorISt10shared_ptrINS1_18kernel_bundle_implEESaIS5_EENS0_12bundle_stateE
_ZN4sycl3_V16detail9link_implERKSt6vectorINS0_13kernel_bundleILNS0_12bundle_stateE1EEESaIS5_EERKS2_INS0_6deviceESaISA_EERKNS0_13property_listE
Expand Down
2 changes: 0 additions & 2 deletions sycl/test/abi/sycl_symbols_windows.dump
Original file line number Diff line number Diff line change
Expand Up @@ -4069,11 +4069,9 @@
?getCommandGraph@handler@_V1@sycl@@AEBA?AV?$shared_ptr@Vgraph_impl@detail@experimental@oneapi@ext@_V1@sycl@@@std@@XZ
?getContextImpl@handler@_V1@sycl@@AEBAAEAVcontext_impl@detail@23@XZ
?getContextImplPtr@handler@_V1@sycl@@AEBAAEBV?$shared_ptr@Vcontext_impl@detail@_V1@sycl@@@std@@XZ
?getCurrentDSODir@OSUtil@detail@_V1@sycl@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ
?getDeviceBackend@handler@_V1@sycl@@AEBA?AW4backend@23@XZ
?getDeviceFromHandler@detail@_V1@sycl@@YA?AVdevice@23@AEAVhandler@23@@Z
?getDeviceKernelInfo@detail@_V1@sycl@@YAAEAVDeviceKernelInfo@123@AEBUCompileTimeKernelInfoTy@compile_time_kernel_info_v1@123@@Z
?getDirName@OSUtil@detail@_V1@sycl@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z
?getElemSize@AccessorBaseHost@detail@_V1@sycl@@QEBAIXZ
?getElementSize@LocalAccessorBaseHost@detail@_V1@sycl@@QEAAHXZ
?getElementSize@SampledImageAccessorBaseHost@detail@_V1@sycl@@QEBAHXZ
Expand Down
6 changes: 2 additions & 4 deletions sycl/unittests/misc/OsUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ bool isSameDir(const char* LHS, const char* RHS) {
class OsUtilsTest : public ::testing::Test {
};

// This test fails with preview breaking changes enabled.
// Failure tracker: https://github.com/intel/llvm/issues/19626
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
TEST_F(OsUtilsTest, getCurrentDSODir) {
// Failure tracker: https://github.com/intel/llvm/issues/19626
GTEST_SKIP() << "Skipping test due to failure tracked in issue #19626";
std::string DSODir = sycl::detail::OSUtil::getCurrentDSODir();
ASSERT_TRUE(isSameDir(DSODir.c_str(), SYCL_LIB_DIR)) <<
"expected: " << SYCL_LIB_DIR << ", got: " << DSODir;
}
#endif
Loading