Skip to content

Commit d76d78e

Browse files
committed
[DO NOT MERGE] Remove code related to vc and builtin_vc
This is to show how the removal would look like in the ROOT 6.40 development cycle.
1 parent 65898c5 commit d76d78e

File tree

14 files changed

+0
-1046
lines changed

14 files changed

+0
-1046
lines changed

cmake/modules/SearchInstalledSoftware.cmake

Lines changed: 0 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,105 +1365,12 @@ if(builtin_tbb)
13651365
set(TBB_TARGET TBB)
13661366
endif()
13671367

1368-
#---Check for Vc---------------------------------------------------------------------
1369-
if(builtin_vc)
1370-
unset(Vc_FOUND)
1371-
unset(Vc_FOUND CACHE)
1372-
set(vc ON CACHE BOOL "Enabled because builtin_vc requested (${vc_description})" FORCE)
1373-
elseif(vc)
1374-
if(fail-on-missing)
1375-
find_package(Vc 1.4.4 CONFIG QUIET REQUIRED)
1376-
else()
1377-
find_package(Vc 1.4.4 CONFIG QUIET)
1378-
if(NOT Vc_FOUND)
1379-
message(STATUS "Vc library not found, support for it disabled.")
1380-
message(STATUS "Please enable the option 'builtin_vc' to build Vc internally.")
1381-
set(vc OFF CACHE BOOL "Disabled because Vc not found (${vc_description})" FORCE)
1382-
endif()
1383-
endif()
1384-
if(Vc_FOUND)
1385-
set_property(DIRECTORY APPEND PROPERTY INCLUDE_DIRECTORIES ${Vc_INCLUDE_DIR})
1386-
endif()
1387-
endif()
1388-
1389-
if(vc AND NOT Vc_FOUND)
1390-
ROOT_CHECK_CONNECTION_AND_DISABLE_OPTION("vc")
1391-
endif()
1392-
1393-
if(vc AND NOT Vc_FOUND)
1394-
set(Vc_VERSION "1.4.4")
1395-
set(Vc_PROJECT "Vc-${Vc_VERSION}")
1396-
set(Vc_SRC_URI "${lcgpackages}/${Vc_PROJECT}.tar.gz")
1397-
set(Vc_DESTDIR "${CMAKE_BINARY_DIR}/externals")
1398-
set(Vc_ROOTDIR "${Vc_DESTDIR}/${CMAKE_INSTALL_PREFIX}")
1399-
set(Vc_LIBNAME "${CMAKE_STATIC_LIBRARY_PREFIX}Vc${CMAKE_STATIC_LIBRARY_SUFFIX}")
1400-
set(Vc_LIBRARY "${Vc_ROOTDIR}/lib/${Vc_LIBNAME}")
1401-
1402-
ExternalProject_Add(VC
1403-
URL ${Vc_SRC_URI}
1404-
URL_HASH SHA256=5933108196be44c41613884cd56305df320263981fe6a49e648aebb3354d57f3
1405-
BUILD_IN_SOURCE 0
1406-
BUILD_BYPRODUCTS ${Vc_LIBRARY}
1407-
LOG_DOWNLOAD 1 LOG_CONFIGURE 1 LOG_BUILD 1 LOG_INSTALL 1 LOG_OUTPUT_ON_FAILURE 1
1408-
CMAKE_ARGS -G ${CMAKE_GENERATOR}
1409-
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
1410-
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
1411-
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
1412-
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
1413-
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
1414-
-DCMAKE_CXX_FLAGS=${ROOT_EXTERNAL_CXX_FLAGS}
1415-
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
1416-
INSTALL_COMMAND env DESTDIR=${Vc_DESTDIR} ${CMAKE_COMMAND} --build . --target install
1417-
TIMEOUT 600
1418-
)
1419-
1420-
set(VC_TARGET Vc)
1421-
set(Vc_LIBRARIES Vc)
1422-
set(Vc_INCLUDE_DIR ${Vc_ROOTDIR}/include)
1423-
set(Vc_CMAKE_MODULES_DIR ${Vc_ROOTDIR}/lib/cmake/Vc)
1424-
1425-
add_library(VcExt STATIC IMPORTED)
1426-
set_property(TARGET VcExt PROPERTY IMPORTED_LOCATION ${Vc_LIBRARY})
1427-
add_dependencies(VcExt VC)
1428-
1429-
add_library(Vc INTERFACE)
1430-
target_include_directories(Vc SYSTEM BEFORE INTERFACE $<BUILD_INTERFACE:${Vc_INCLUDE_DIR}>)
1431-
target_link_libraries(Vc INTERFACE VcExt)
1432-
1433-
find_package_handle_standard_args(Vc
1434-
FOUND_VAR Vc_FOUND
1435-
REQUIRED_VARS Vc_INCLUDE_DIR Vc_LIBRARIES Vc_CMAKE_MODULES_DIR
1436-
VERSION_VAR Vc_VERSION)
1437-
1438-
# FIXME: This is a workaround to let ROOT find the headers at runtime if
1439-
# they are in the build directory. This is necessary until we decide how to
1440-
# treat externals with headers used by ROOT
1441-
if(NOT EXISTS ${CMAKE_BINARY_DIR}/include/Vc)
1442-
if (NOT EXISTS ${CMAKE_BINARY_DIR}/include)
1443-
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/include)
1444-
endif()
1445-
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
1446-
${Vc_INCLUDE_DIR}/Vc ${CMAKE_BINARY_DIR}/include/Vc)
1447-
endif()
1448-
# end of workaround
1449-
1450-
install(DIRECTORY ${Vc_ROOTDIR}/ DESTINATION ".")
1451-
endif()
1452-
1453-
if(Vc_FOUND)
1454-
# Missing from VcConfig.cmake
1455-
set(Vc_INCLUDE_DIRS ${Vc_INCLUDE_DIR})
1456-
endif()
1457-
14581368
#---Check for VecCore--------------------------------------------------------------------
14591369
if(builtin_veccore)
14601370
unset(VecCore_FOUND)
14611371
unset(VecCore_FOUND CACHE)
14621372
set(veccore ON CACHE BOOL "Enabled because builtin_veccore requested (${veccore_description})" FORCE)
14631373
elseif(veccore)
1464-
if(vc)
1465-
set(VecCore_COMPONENTS Vc)
1466-
endif()
14671374
if(fail-on-missing)
14681375
find_package(VecCore 0.4.2 CONFIG QUIET REQUIRED COMPONENTS ${VecCore_COMPONENTS})
14691376
else()
@@ -1520,18 +1427,6 @@ if(builtin_veccore)
15201427
target_include_directories(VecCore SYSTEM INTERFACE $<BUILD_INTERFACE:${VecCore_ROOTDIR}/include>)
15211428
add_dependencies(VecCore VECCORE)
15221429

1523-
if (Vc_FOUND)
1524-
set(VecCore_Vc_FOUND True)
1525-
set(VecCore_Vc_DEFINITIONS -DVECCORE_ENABLE_VC)
1526-
set(VecCore_Vc_INCLUDE_DIR ${Vc_INCLUDE_DIR})
1527-
set(VecCore_Vc_LIBRARIES ${Vc_LIBRARIES})
1528-
1529-
set(VecCore_DEFINITIONS ${VecCore_Vc_DEFINITIONS})
1530-
list(APPEND VecCore_INCLUDE_DIRS ${VecCore_Vc_INCLUDE_DIR})
1531-
set(VecCore_LIBRARIES ${VecCore_LIBRARIES} ${Vc_LIBRARIES})
1532-
target_link_libraries(VecCore INTERFACE ${Vc_LIBRARIES})
1533-
endif()
1534-
15351430
find_package_handle_standard_args(VecCore
15361431
FOUND_VAR VecCore_FOUND
15371432
REQUIRED_VARS VecCore_INCLUDE_DIRS VecCore_LIBRARIES

config/RConfigure.in

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#@haspthread@ R__HAS_PTHREAD /**/
3737
#@hasxft@ R__HAS_XFT /**/
3838
#@hascocoa@ R__HAS_COCOA /**/
39-
#@hasvc@ R__HAS_VC /**/
4039
#@hasvdt@ R__HAS_VDT /**/
4140
#@hasveccore@ R__HAS_VECCORE /**/
4241
#@usecxxmodules@ R__USE_CXXMODULES /**/
@@ -54,12 +53,6 @@
5453
#@hastbb@ R__HAS_TBB /**/
5554
#define R__HARDWARE_INTERFERENCE_SIZE @hardwareinterferencesize@ /*Determined at CMake configure to be stable across all TUs*/
5655

57-
#if defined(R__HAS_VECCORE) && defined(R__HAS_VC)
58-
#ifndef VECCORE_ENABLE_VC
59-
#define VECCORE_ENABLE_VC
60-
#endif
61-
#endif
62-
6356
#@uselz4@ R__HAS_DEFAULT_LZ4 /**/
6457
#@usezlib@ R__HAS_DEFAULT_ZLIB /**/
6558
#@uselzma@ R__HAS_DEFAULT_LZMA /**/

core/clingutils/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ set(clinginclude ${CMAKE_SOURCE_DIR}/interpreter/cling/include)
117117
set(custom_modulemaps)
118118
if (runtime_cxxmodules)
119119
set(custom_modulemaps boost.modulemap tinyxml2.modulemap cuda.modulemap module.modulemap.build)
120-
if(vc)
121-
set(custom_modulemaps ${custom_modulemaps} vc.modulemap)
122-
endif()
123120

124121
# We need to override the default modulemap because instead of producing a
125122
# single std.pcm, produces hundreds of pcms. This changed with MacOSX14.4.sdk

interpreter/cling/include/cling/vc.modulemap

Lines changed: 0 additions & 4 deletions
This file was deleted.

math/mathcore/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ set(HEADERS
9595
TRandom3.h
9696
TRandomGen.h
9797
TStatistic.h
98-
VectorizedTMath.h
9998
)
10099

101100
if(runtime_cxxmodules)
@@ -104,14 +103,6 @@ if(runtime_cxxmodules)
104103
# 'abs' shadow declaration (from stl math.h) is broken.
105104
# FIXME: Revise after a llvm upgrade or reproduce it outside rootcling.
106105
list(REMOVE_ITEM HEADERS "Math/Math.h")
107-
108-
if(vc)
109-
# We do not link against libVc.a thus it makes no sense to check for
110-
# version compatibility between libraries and header files. This fixes
111-
# ROOT-11002 where upon building the modules.idx we run the static ctor
112-
# runLibraryAbiCheck which fails to find the corresponding symbol.
113-
set(dictoptions "-m" "Vc" "-mByproduct" "Vc" "-D" "Vc_NO_VERSION_CHECK")
114-
endif(vc)
115106
endif()
116107

117108
ROOT_ADD_C_FLAG(_flags -Wno-strict-overflow) # Avoid what it seems a compiler false positive warning
@@ -189,7 +180,6 @@ ROOT_STANDARD_LIBRARY_PACKAGE(MathCore
189180
src/TStatistic.cxx
190181
src/UnBinData.cxx
191182
src/Util.cxx
192-
src/VectorizedTMath.cxx
193183
LIBRARIES
194184
${MATHCORE_LIBRARIES}
195185
DICTIONARY_OPTIONS

math/mathcore/inc/Math/Types.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,13 @@
55

66
#ifdef R__HAS_VECCORE
77

8-
#if defined(R__HAS_VC)
9-
10-
#pragma GCC diagnostic push
11-
#pragma GCC diagnostic ignored "-Wall"
12-
#pragma GCC diagnostic ignored "-Wunused-parameter"
13-
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
14-
#if (__cplusplus >= 202002L) // only for C++20
15-
#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
16-
#endif
17-
18-
#ifdef __clang__
19-
#pragma clang diagnostic ignored "-Wconditional-uninitialized"
20-
#pragma clang diagnostic ignored "-Wdeprecated-copy"
21-
#endif
22-
23-
#include <Vc/Vc>
24-
#pragma GCC diagnostic pop
25-
#endif
26-
278
#include <VecCore/VecCore>
289

2910
namespace ROOT {
3011

3112
namespace Internal {
3213
using ScalarBackend = vecCore::backend::Scalar;
33-
#ifdef VECCORE_ENABLE_VC
34-
using VectorBackend = vecCore::backend::VcVector;
35-
#else
3614
using VectorBackend = vecCore::backend::Scalar;
37-
#endif
3815
}
3916
using Float_v = typename Internal::VectorBackend::Float_v;
4017
using Double_v = typename Internal::VectorBackend::Double_v;

math/mathcore/inc/VectorizedTMath.h

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)