Skip to content

Commit a08dbb3

Browse files
committed
Reduce & improve some of the excessive messages printed
1 parent c273d11 commit a08dbb3

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ include(CheckLanguage)
4444
check_language(CUDA)
4545
if(CMAKE_CUDA_COMPILER)
4646
enable_language(CUDA)
47-
message(VERBOSE "Have ${CMAKE_CUDA_COMPILER} ${CMAKE_CUDA_COMPILER_VERSION}")
4847
else()
4948
# If CUDA is not available, check for HIP as an alternative.
50-
message(VERBOSE "Did not find CUDA compiler; cannot support CUDA.")
49+
message(STATUS "CUDA not available; looking for a HIP compiler")
5150
find_program(_HIP_COMPILER hipcc)
5251
if(_HIP_COMPILER)
5352
enable_language(HIP)
54-
message(VERBOSE "Found hipcc. Enabling HIP support.")
53+
message(STATUS "CUDA not available; looking for a HIP compiler - found")
5554
else()
56-
message(VERBOSE "Did not find hipcc; cannot support HIP.")
55+
message(STATUS "CUDA not available; looking for a HIP compiler - not found")
56+
message(STATUS "(Without CUDA or HIP, qsim cannot use GPUs for acceleration)")
5757
endif()
5858
endif()
5959

@@ -127,8 +127,3 @@ if(APPLE)
127127
"/opt/homebrew/opt/llvm@19/lib"
128128
)
129129
endif()
130-
131-
# ~~~~~ Print info for debugging ~~~~~
132-
133-
message(DEBUG "Shell $PATH = $ENV{PATH}")
134-
message(DEBUG "Shell $CUQUANTUM_ROOT = $ENV{CUQUANTUM_ROOT}")

dev_tools/cmake/CheckCPU.cmake

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include(CheckCXXSourceRuns)
1818
macro(check_cpu_support _FEATURE_STRING _FEATURE_FLAG)
1919
set(${_FEATURE_FLAG} FALSE)
2020

21-
message(STATUS "Testing platform support for ${_FEATURE_STRING}")
21+
message(STATUS "Testing platform support for ${_FEATURE_STRING}")
2222
if(WIN32)
2323
# On Windows, there's no built-in method to learn the CPU flags. Third-
2424
# party tools exist, but downloading & running them is a security risk.
@@ -66,8 +66,11 @@ macro(check_cpu_support _FEATURE_STRING _FEATURE_FLAG)
6666
endif()
6767
endif()
6868

69-
message(STATUS "Testing hardware for ${_FEATURE_STRING} … Done.")
70-
message(STATUS "${_FEATURE_FLAG} = ${${_FEATURE_FLAG}}")
69+
if(${_FEATURE_FLAG})
70+
message(STATUS "Testing platform support for ${_FEATURE_STRING} - found")
71+
else()
72+
message(STATUS "Testing platform support for ${_FEATURE_STRING} - not found")
73+
endif()
7174
endmacro()
7275

7376
# Small Windows C++ program to test bits in certain Intel CPU registers.

0 commit comments

Comments
 (0)