From 15be9f37b60d55f0cfc614cff3ddc95ab74ce109 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Fri, 8 Nov 2024 14:23:15 -0500 Subject: [PATCH] Style --- cpp/CMakeLists.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 8f4e0d186b..9be771db55 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -85,16 +85,25 @@ else() set(cuFile_FOUND 1) # Check batch and stream API support (cuFile_BATCH_API_FOUND and cuFile_STREAM_API_FOUND) - try_compile(cuFile_BATCH_API_FOUND OUTPUT_VARIABLE batch_output SOURCE_FROM_CONTENT batch.cpp + try_compile( + cuFile_BATCH_API_FOUND OUTPUT_VARIABLE + batch_output + SOURCE_FROM_CONTENT + batch.cpp [[#include int main() { cuFileBatchIOSetUp(nullptr, 0); return 0; } - ]]) + ]] + ) message(STATUS "batch output: ${batch_output}") message(STATUS "Found cuFile Batch API: ${cuFile_BATCH_API_FOUND}") - try_compile(cuFile_STREAM_API_FOUND OUTPUT_VARIABLE stream_output SOURCE_FROM_CONTENT stream.cpp + try_compile( + cuFile_STREAM_API_FOUND OUTPUT_VARIABLE + stream_output + SOURCE_FROM_CONTENT + stream.cpp [[#include int main() { CUFileHandle_t fh; @@ -102,7 +111,8 @@ else() cuFileReadAsync(fh, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr); return 0; } - ]]) + ]] + ) message(STATUS "stream output: ${stream_output}") message(STATUS "Found cuFile Stream API: ${cuFile_STREAM_API_FOUND}") endif()