|
| 1 | +// REQUIRES: linux |
| 2 | +// UNSUPPORTED: libcxx |
| 3 | +// RUN: sort %S/sycl_symbols_linux.dump | FileCheck %s --implicit-check-not=cxx11 |
| 4 | + |
| 5 | +// The purpose of this test is to check that all symbols that are visible from |
| 6 | +// SYCL library are ABI neutral (see |
| 7 | +// https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html). It |
| 8 | +// means that SYCL library must not export symbols in "__cxx11" namespace or |
| 9 | +// with "cxx11" tag because such symbols correspond to the new ABI entries |
| 10 | +// (_GLIBCXX_USE_CXX11_ABI=1, default) and won't work with a program that uses |
| 11 | +// the old ABI (_GLIBCXX_USE_CXX11_ABI=0). All APIs exported from SYCL RT must |
| 12 | +// avoid using classes like std::string and std::list impacted by the dual ABI |
| 13 | +// issue and have to use their ABI-neutral counterparts provided by SYCL RT (e.g |
| 14 | +// sycl::detail::string, etc.). |
| 15 | + |
| 16 | +// New exclusions are NOT ALLOWED to this file. All remaining cases that need |
| 17 | +// to be fixed are listed below. |
| 18 | +// CHECK:_ZN4sycl3_V13ext5intel12experimental15online_compilerILNS3_15source_languageE0EE7compileIJSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EEEEES8_IhSaIhEERKSE_DpRKT_ |
| 19 | +// CHECK:_ZN4sycl3_V13ext5intel12experimental15online_compilerILNS3_15source_languageE1EE7compileIJSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EEEEES8_IhSaIhEERKSE_DpRKT_ |
| 20 | +// CHECK:_ZN4sycl3_V13ext5intel12experimental9pipe_base13get_pipe_nameB5cxx11EPKv |
| 21 | +// CHECK:_ZN4sycl3_V13ext6oneapi12experimental6detail17build_from_sourceERNS0_13kernel_bundleILNS0_12bundle_stateE3EEERKSt6vectorINS0_6deviceESaISA_EERKS9_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISK_EEPSK_SO_ |
| 22 | +// CHECK:_ZN4sycl3_V13ext6oneapi12experimental6detail30make_kernel_bundle_from_sourceERKNS0_7contextENS3_15source_languageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorISt4pairISE_SE_ESaISJ_EE |
| 23 | +// CHECK:_ZN4sycl3_V13ext6oneapi12experimental6detail30make_kernel_bundle_from_sourceERKNS0_7contextENS3_15source_languageERKSt6vectorISt4byteSaISA_EES9_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESL_ESaISM_EE |
| 24 | +// CHECK:_ZN4sycl3_V13ext6oneapi15filter_selectorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 25 | +// CHECK:_ZN4sycl3_V13ext6oneapi15filter_selectorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 26 | +// CHECK:_ZN4sycl3_V16ONEAPI15filter_selectorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 27 | +// CHECK:_ZN4sycl3_V16ONEAPI15filter_selectorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 28 | +// CHECK:_ZN4sycl3_V16detail19kernel_bundle_plain21ext_oneapi_get_kernelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 29 | +// CHECK:_ZN4sycl3_V16detail19kernel_bundle_plain21ext_oneapi_has_kernelERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 30 | +// CHECK:_ZN4sycl3_V16detail6OSUtil10getDirNameB5cxx11EPKc |
| 31 | +// CHECK:_ZN4sycl3_V16detail6OSUtil16getCurrentDSODirB5cxx11Ev |
| 32 | +// CHECK:_ZN4sycl3_V16device32ext_oneapi_supports_cl_c_featureERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 33 | +// CHECK:_ZN4sycl3_V16opencl13has_extensionERKNS0_6deviceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 34 | +// CHECK:_ZN4sycl3_V16opencl13has_extensionERKNS0_8platformERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 35 | +// CHECK:_ZNK4sycl3_V13ext6oneapi12experimental6detail24modifiable_command_graph11print_graphENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb |
| 36 | +// CHECK:_ZNK4sycl3_V16device13has_extensionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
| 37 | +// CHECK:_ZNK4sycl3_V16device21ext_oneapi_cl_profileB5cxx11Ev |
| 38 | +// CHECK:_ZNK4sycl3_V16device32ext_oneapi_supports_cl_extensionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_3ext6oneapi12experimental10cl_versionE |
| 39 | +// CHECK:_ZNK4sycl3_V18platform13has_extensionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE |
0 commit comments