From 04c78de446aeabe326448b556ff16611b6e9d326 Mon Sep 17 00:00:00 2001 From: Rohit Kumar Srivastava Date: Tue, 10 Nov 2020 14:03:33 -0800 Subject: [PATCH] Update CMakeLists.txt Co-authored-by: Leonard Lausen --- CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37167d6e45aa..9b0285064eac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -304,13 +304,7 @@ endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src) -if(DEFINED USE_INT64_TENSOR_SIZE AND NOT USE_INT64_TENSOR_SIZE OR CMAKE_SIZEOF_VOID_P EQUAL 4) - message(STATUS "Large Tensor disabled") - set(USE_INT64_TENSOR_SIZE OFF CACHE BOOL "Use int64_t to represent the total number of elements in a tensor") -else() - message(STATUS "Large Tensor enabled") - set(USE_INT64_TENSOR_SIZE ON CACHE BOOL "Use int64_t to represent the total number of elements in a tensor") -endif() + cmake_dependent_option(USE_INT64_TENSOR_SIZE "Use int64_t to represent the total number of elements in a tensor" ON "CMAKE_SIZEOF_VOID_P EQUAL 8" OFF) include(cmake/ChooseBlas.cmake) @@ -982,4 +976,3 @@ if(BUILD_CYTHON_MODULES) message(FATAL_ERROR "No python interpreter found to build cython modules") endif() endif() -