Skip to content

Commit

Permalink
Revert "move find_package(OpenMP) from SuiteSparse_config/CMakeLists.…
Browse files Browse the repository at this point in the history
…txt to SuiteSparsePolicy.cmake"

This reverts commit d055b94.
  • Loading branch information
mmuetzel committed Dec 20, 2023
1 parent d055b94 commit 6edc720
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 39 deletions.
13 changes: 0 additions & 13 deletions GraphBLAS/cmake_modules/SuiteSparsePolicy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,6 @@ else ( )
CACHE STRING "C to Fortan name mangling" )
endif ( )

#-------------------------------------------------------------------------------
# find OpenMP
#-------------------------------------------------------------------------------

option ( SUITESPARSE_USE_OPENMP "ON (default): Use OpenMP if available. OFF: Do not use OpenMP" ON )
if ( SUITESPARSE_USE_OPENMP )
find_package ( OpenMP )
else ( )
# OpenMP has been disabled
message ( STATUS "OpenMP disabled" )
set ( OpenMP_C_FOUND OFF )
endif ( )

#-------------------------------------------------------------------------------
# find CUDA
#-------------------------------------------------------------------------------
Expand Down
13 changes: 0 additions & 13 deletions LAGraph/cmake_modules/SuiteSparsePolicy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,6 @@ else ( )
CACHE STRING "C to Fortan name mangling" )
endif ( )

#-------------------------------------------------------------------------------
# find OpenMP
#-------------------------------------------------------------------------------

option ( SUITESPARSE_USE_OPENMP "ON (default): Use OpenMP if available. OFF: Do not use OpenMP" ON )
if ( SUITESPARSE_USE_OPENMP )
find_package ( OpenMP )
else ( )
# OpenMP has been disabled
message ( STATUS "OpenMP disabled" )
set ( OpenMP_C_FOUND OFF )
endif ( )

#-------------------------------------------------------------------------------
# find CUDA
#-------------------------------------------------------------------------------
Expand Down
9 changes: 9 additions & 0 deletions SuiteSparse_config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ endif ( )
# find library dependencies
#-------------------------------------------------------------------------------

option ( SUITESPARSE_USE_OPENMP "ON (default): Use OpenMP if available. OFF: Do not use OpenMP" ON )
if ( SUITESPARSE_USE_OPENMP )
find_package ( OpenMP )
else ( )
# OpenMP has been disabled
message ( STATUS "OpenMP disabled" )
set ( OpenMP_C_FOUND OFF )
endif ( )

include ( SuiteSparseBLAS )

#-------------------------------------------------------------------------------
Expand Down
13 changes: 0 additions & 13 deletions SuiteSparse_config/cmake_modules/SuiteSparsePolicy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,6 @@ else ( )
CACHE STRING "C to Fortan name mangling" )
endif ( )

#-------------------------------------------------------------------------------
# find OpenMP
#-------------------------------------------------------------------------------

option ( SUITESPARSE_USE_OPENMP "ON (default): Use OpenMP if available. OFF: Do not use OpenMP" ON )
if ( SUITESPARSE_USE_OPENMP )
find_package ( OpenMP )
else ( )
# OpenMP has been disabled
message ( STATUS "OpenMP disabled" )
set ( OpenMP_C_FOUND OFF )
endif ( )

#-------------------------------------------------------------------------------
# find CUDA
#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 6edc720

Please sign in to comment.