Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report openmp #633

Merged
merged 2 commits into from
Dec 24, 2023
Merged
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
1 change: 1 addition & 0 deletions CHOLMOD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ if ( OpenMP_C_FOUND )
else ( )
set ( CHOLMOD_HAS_OPENMP OFF )
endif ( )
message ( STATUS "CHOLMOD has OpenMP: ${CHOLMOD_HAS_OPENMP}" )

# check for strict usage
if ( SUITESPARSE_USE_STRICT AND CHOLMOD_USE_OPENMP AND NOT CHOLMOD_HAS_OPENMP )
Expand Down
3 changes: 2 additions & 1 deletion GraphBLAS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ if ( OpenMP_C_FOUND )
else ( )
set ( GRAPHBLAS_HAS_OPENMP OFF )
endif ( )
message ( STATUS "GraphBLAS has OpenMP: ${GRAPHBLAS_HAS_OPENMP}" )

# check for strict usage
if ( SUITESPARSE_USE_STRICT AND GRAPHBLAS_USE_OPENMP AND NOT GRAPHBLAS_HAS_OPENMP )
Expand Down Expand Up @@ -732,5 +733,5 @@ endif ( )
#-------------------------------------------------------------------------------

if ( NOT SUITESPARSE_ROOT_CMAKELISTS )
include ( SuiteSparseReport )
include ( GraphBLASReport )
endif ( )
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
# SuiteSparse/SuiteSparse_config/SuiteSparseReport.cmake
# GraphBLAS/cmake_modules/GraphBLASReport.cmake
#-------------------------------------------------------------------------------

# Copyright (c) 2012-2023, Timothy A. Davis. All Rights Reserved.
Expand All @@ -10,7 +10,7 @@
#-------------------------------------------------------------------------------

message ( STATUS "------------------------------------------------------------------------" )
message ( STATUS "SuiteSparse CMAKE report for: ${CMAKE_PROJECT_NAME}" )
message ( STATUS "CMAKE report for: ${CMAKE_PROJECT_NAME}" )
message ( STATUS "------------------------------------------------------------------------" )
if ( NOT SUITESPARSE_ROOT_CMAKELISTS )
message ( STATUS "inside common SuiteSparse root: ${INSIDE_SUITESPARSE}" )
Expand All @@ -19,33 +19,13 @@ endif ( )
message ( STATUS "build type: ${CMAKE_BUILD_TYPE}" )
message ( STATUS "BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}" )
message ( STATUS "BUILD_STATIC_LIBS: ${BUILD_STATIC_LIBS}" )
if ( SUITESPARSE_HAS_OPENMP )
message ( STATUS "use OpenMP: yes ")
else ( )
message ( STATUS "use OpenMP: no ")
endif ( )
message ( STATUS "C compiler: ${CMAKE_C_COMPILER} ")
message ( STATUS "C flags: ${CMAKE_C_FLAGS}" )
message ( STATUS "C++ compiler: ${CMAKE_CXX_COMPILER}" )
message ( STATUS "C++ flags: ${CMAKE_CXX_FLAGS}" )
if ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" )
message ( STATUS "C Flags debug: ${CMAKE_C_FLAGS_DEBUG} ")
message ( STATUS "C++ Flags debug: ${CMAKE_CXX_FLAGS_DEBUG} ")
else ( )
message ( STATUS "C Flags release: ${CMAKE_C_FLAGS_RELEASE} ")
message ( STATUS "C++ Flags release: ${CMAKE_CXX_FLAGS_RELEASE} ")
endif ( )
if ( SUITESPARSE_HAS_FORTRAN )
message ( STATUS "Fortran compiler: ${CMAKE_Fortran_COMPILER} " )
else ( )
message ( STATUS "Fortran compiler: none" )
endif ( )
get_property ( CDEFN DIRECTORY PROPERTY COMPILE_DEFINITIONS )
message ( STATUS "compile definitions: ${CDEFN}")
if ( DEFINED SuiteSparse_BLAS_integer )
message ( STATUS "BLAS integer: ${SuiteSparse_BLAS_integer}" )
endif ( )
if ( DEFINED CMAKE_CUDA_ARCHITECTURES )
message ( STATUS "CUDA architectures: ${CMAKE_CUDA_ARCHITECTURES}" )
endif ( )
message ( STATUS "------------------------------------------------------------------------" )
1 change: 1 addition & 0 deletions LAGraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ if ( OpenMP_C_FOUND )
else ( )
set ( LAGRAPH_HAS_OPENMP OFF )
endif ( )
message ( STATUS "LAGraph has OpenMP: ${LAGRAPH_HAS_OPENMP}" )

# check for strict usage
if ( SUITESPARSE_USE_STRICT AND LAGRAPH_USE_OPENMP AND NOT LAGRAPH_HAS_OPENMP )
Expand Down
1 change: 1 addition & 0 deletions ParU/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ else ( )
set ( OpenMP_CXX_FOUND OFF )
set ( OpenMP_C_FOUND OFF )
endif ( )
message ( STATUS "ParU has OpenMP: ${PARU_HAS_OPENMP}" )

# check for strict usage
if ( SUITESPARSE_USE_STRICT AND PARU_USE_OPENMP AND NOT PARU_HAS_OPENMP )
Expand Down
2 changes: 2 additions & 0 deletions SuiteSparse_config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ else ( )
set ( SUITESPARSE_HAS_OPENMP OFF )
set ( SUITESPARSE_CONFIG_HAS_OPENMP OFF )
endif ( )
message ( STATUS "SuiteSparse has OpenMP: ${SUITESPARSE_HAS_OPENMP}" )
message ( STATUS "SuiteSparse_config has OpenMP: ${SUITESPARSE_CONFIG_HAS_OPENMP}" )

# check for strict usage
if ( SUITESPARSE_USE_STRICT AND SUITESPARSE_USE_OPENMP AND NOT SUITESPARSE_HAS_OPENMP )
Expand Down
5 changes: 0 additions & 5 deletions SuiteSparse_config/cmake_modules/SuiteSparseReport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ endif ( )
message ( STATUS "build type: ${CMAKE_BUILD_TYPE}" )
message ( STATUS "BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}" )
message ( STATUS "BUILD_STATIC_LIBS: ${BUILD_STATIC_LIBS}" )
if ( SUITESPARSE_HAS_OPENMP )
message ( STATUS "use OpenMP: yes ")
else ( )
message ( STATUS "use OpenMP: no ")
endif ( )
message ( STATUS "C compiler: ${CMAKE_C_COMPILER} ")
message ( STATUS "C flags: ${CMAKE_C_FLAGS}" )
message ( STATUS "C++ compiler: ${CMAKE_CXX_COMPILER}" )
Expand Down