Giter Club home page Giter Club logo

Comments (9)

salvacarrion avatar salvacarrion commented on May 18, 2024

Most flags are automatic or have default values:

  • GPU falling back to CPU
  • OpenMP (if available, it'll be on)
  • SHARED_LIB (default)
  • PREFIX_INSTAL...
  • etc
    (You can change them if you want, but is better to let cmake choose their values for you)

But other flags are too agressive and need specific requirements. So I recommend not to use them: BUILD_HPC, MKL
By default they are disabled for compatibility purposes.

More:

  • BUILD_TESTS should be off (i need to update the tests)

from eddl.

Andrea-Oliveri avatar Andrea-Oliveri commented on May 18, 2024

I have tried calling cmake with only these parameters: -DBUILD_TARGET=CPU -DBUILD_SHARED_LIB=ON -DBUILD_PROTOBUF=OFF -DBUILD_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX=/home/oliveri/oliveri/eddl and unfortunately make fails with the same errors.
Here is the output of CMake:

-- The CXX compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_CXX: -fopenmp (found version "3.1")
-- Found OpenMP: TRUE (found version "3.1")
-- Found OpenMP, version 3
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Install path: /home/oliveri/oliveri/eddl
-- ===========================================
-- ===========================================
-- Build type: Release
-- Build target: CPU
-- Build tests: OFF
-- Build examples: ON
-- Build OpenMP: ON
-- Build Protobuf: OFF
-- Build HPC: OFF
-- Use Intel-MKL: OFF
-- C++ compiler: GNU
-- C++ flags:  -DEIGEN_FAST_MATH -pipe
-- C++ flags (release): -O3 -mtune=native
-- C++ flags (debug): -g -Og
-- CUDA Enabled:
-- CUDA flags:
-- ===========================================
-- ===========================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/oliveri/oliveri/Projet_de_Batchelor/repo/pyeddl/third_party/eddl/build

The output of make is unchanged.

from eddl.

RParedesPalacios avatar RParedesPalacios commented on May 18, 2024

rm -rf *
and cmake again

from eddl.

Andrea-Oliveri avatar Andrea-Oliveri commented on May 18, 2024

Already done. I actually delete the whole repository and reclone it at each try, so it's unfortunately not as simple as cleaning the build folder.

from eddl.

salvacarrion avatar salvacarrion commented on May 18, 2024

Try using a more recent version of the GNU compiler (or another). You currently use GNU 4.8.5, so try with g++-9 or clang (for instance)

from eddl.

RParedesPalacios avatar RParedesPalacios commented on May 18, 2024

Already done. I actually delete the whole repository and reclone it at each try, so it's unfortunately not as simple as cleaning the build folder.

ok! seems that cold be the compiler version.

from eddl.

salvacarrion avatar salvacarrion commented on May 18, 2024

@Andrea-Oliveri any news?

from eddl.

Andrea-Oliveri avatar Andrea-Oliveri commented on May 18, 2024

Unfortunately I don't have sudo rights to update the compiler on the CentOS, so the whole process od trying a more recent compiler version is going to take a while. However, knowing that on the Ubuntu machine with a more recent compiler the build process works flawlessly, I think you are right and eddl is just incompatible with too old gcc/g++ versions.
Thank you for your support.

from eddl.

salvacarrion avatar salvacarrion commented on May 18, 2024

Okay, so I'm gonna close this issue.

Btw, it is possible change the compiler using this cmake flag: -DCMAKE_CXX_COMPILER=/path/to/c++compiler

More: Build options

from eddl.

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.