davidar / eigenGPT

Minimal C++ implementation of GPT2
40 stars 4 forks source link

bad_alloc, Aborted (core dumped) #1

Open mxxu00 opened 1 week ago

mxxu00 commented 1 week ago

bad_alloc, Aborted (core dumped)

$ ./main
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

while excuting cmake, approximately a hundred of warning message shown just like below:

WARNING: Target "special_packetmath_3" requests linking to directory "/data-ssd/home/mingxi/workspace/eigenGPT/build/_deps/eigen-src/".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "special_packetmath_4" requests linking to directory "/data-ssd/home/mingxi/workspace/eigenGPT/build/_deps/eigen-src/".  Targets may link only to libraries.  CMake is dropping the item.
-- Generating done

something wrong?

mxxu00 commented 1 week ago

I found that git not fully fatch submodule(gpt2 and gpt2-tokenizer). But after confirmed whole submodule is completely downloaded, still have same warning:"Targets may link only to libraries".

when excuting ./main, it have 0% to 100%, and then shows:

./main
terminate called after throwing an instance of 'std::out_of_range'
  what():  _Map_base::at
Aborted (core dumped)

when doing cmake, it shows:

..............

- Performing Test COMPILER_SUPPORT_FASTMATH - Success
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR) (Required is at least version "1.53.0")
-- Could NOT find GoogleHash (missing: GOOGLEHASH_INCLUDES GOOGLEHASH_COMPILE) 
-- Could NOT find Adolc (missing: ADOLC_INCLUDES ADOLC_LIBRARIES) 
-- Could NOT find MPFR (missing: MPFR_INCLUDES MPFR_LIBRARIES MPFR_VERSION_OK) (Required is at least version "1.0.0")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Could NOT find FFTW (missing: FFTW_INCLUDES FFTW_LIBRARIES) 
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.0")
-- Found unsuitable Qt version "" from NOTFOUND
-- Qt4 not found, so disabling the mandelbrot and opengl demos
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES) 
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES) 
-- Could NOT find KLU (missing: KLU_INCLUDES KLU_LIBRARIES) 
-- Could NOT find SuperLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIE

..............

This is my first time to use Cmake. Is there anything i didn't done?