Coder Social home page Coder Social logo

Comments (3)

cdessanti avatar cdessanti commented on June 9, 2024

To compile the GPU version, you need CUDA 11.8; version 11.4 is outdated. Additionally, ensure your GPU driver is at least version 520.x (though it's not required at compile time).

If you encounter issues with CMake, make sure to run mapd-deps.sh found in /usr/local/mapd-deps. This directory includes the Thrift library and other dependencies not present in the standard Ubuntu repositories.

from heavydb.

shwetaiisc avatar shwetaiisc commented on June 9, 2024

Hi,

I upgraded the CUDA version to 12.1 and GPU driver to 530.x. However the cmake is still failing. Do I need to make any changes in the CMakeLists.txt file?

Thanks for the suggestion though!

from heavydb.

cdessanti avatar cdessanti commented on June 9, 2024

Hello,

Just wanted to let you know that you don't need to make any modifications to the CMakeLists.txt file. Instead, you can try adding "-DCMAKE_CUDA_ARCHITECTURES=75" (replace 75 with the appropriate version for your setup) to your command.

However, please note that you may encounter an error if you run this command with an unsupported CUDA version or if you have already run the config script. To avoid this, run the command "source /usr/local/mapd-deps/mapd-deps.sh" before running the cmake command.
With the release of 8.0, we will probably move to cuda 12.1. However, for now, we are using 11.8. I'm installing cuda 12.1 to try and reproduce your error.

I haven't any issue using cuda 12.1 on my system. could you share the entire output of your cmake command?

mine is:

mapd@zion-tr:/opt/mapd_storage/github/test_os/heavydb/build$ cmake ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CUDA compiler identification is NVIDIA 12.1.105
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found version "12.1") 
-- CMake 3.18+, Setting CUDA_ARCHITECTURES.
-- CUDA_ARCHITECTURES: 50-virtual;60-virtual;70-virtual;75-virtual;80-virtual
-- Enabling NVCC multi-threaded compilation with 24 threads.
-- Found GEOS: /usr/local/mapd-deps/lib/libgeos_c.so  
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1f")  
-- Found Thrift: /usr/local/mapd-deps/lib/libthrift.so  
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.37") 
-- Found GDAL: /usr/local/mapd-deps/lib/libgdal.so  
-- Found BLOSC: /usr/local/mapd-deps/lib/../include  
-- Found Folly: /usr/local/mapd-deps/lib/libfolly.so  
-- ONEDAL_LINK:      static
-- ONEDAL_USE_DPCPP:        no
-- ONEDAL_INTERFACE:   yes
-- ONEDAL_SET_TBB_MANUALLY: no
-- oneDAL_ROOT_DIR:         /usr/local/mapd-deps
-- oneDAL_INCLUDE_DIRS:     /usr/local/mapd-deps/include
-- oneDAL_IMPORTED_TARGETS: -lstdc++;-lm;-lpthread;-ldl;oneDAL::onedal;oneDAL::onedal_core;oneDAL::onedal_thread
-- Found the following oneDAL libraries:
--   onedal
--   onedal_core
--   onedal_thread
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so  
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib/x86_64-linux-gnu/libtinfo.so  
-- Found LLVM 14.0.6
-- Using LLVMConfig.cmake in: /usr/local/mapd-deps/lib/cmake/llvm
-- Using LLVM_LIB: /usr/local/mapd-deps/lib/libLLVM-14.so
-- Using CLANG_LIB: /usr/local/mapd-deps/lib/libclang-cpp.so.14
-- Found the following Boost libraries:
--   log
--   log_setup
--   filesystem
--   program_options
--   regex
--   system
--   thread
--   timer
--   locale
--   iostreams
--   serialization
-- Found Boost: (found version "1.71.0")
-- Performing Test HAVE_CXX_FLAG_STD_CXX11
-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WERROR
-- Performing Test HAVE_CXX_FLAG_WERROR - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- AWSSDK version 1.7.301
-- Found LibAwsS3: /usr/local/mapd-deps/include  
-- Found Arrow: /usr/local/mapd-deps/lib/libarrow.so  
-- Found Parquet: /usr/local/mapd-deps/lib/libparquet.so  
-- Found Snappy: /usr/lib/x86_64-linux-gnu/libsnappy.so  
-- Build mode: Release
-- Compiler type GNU: /usr/bin/c++
-- Found RdKafka: /usr/local/mapd-deps/lib/librdkafka.so  
-- Found LibArchive: /usr/lib/x86_64-linux-gnu/libarchive.so  
-- TBB library is found with 
-- Found XercesC: /usr/lib/x86_64-linux-gnu/libxerces-c.so (found version "3.2.2") 
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/mapd_storage/github/test_os/heavydb/build

from heavydb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.