marian-nmt / marian-dev

Fast Neural Machine Translation in C++ - development repository
https://marian-nmt.github.io
Other
247 stars 123 forks source link

Portable marian binary for the recent versions of ubuntu (20.04 and newer) #1011

Closed thammegowda closed 8 months ago

thammegowda commented 10 months ago

Feature description

It's nice to have marian binary that is compiled on one machine to run on another with similar architecture and a slight difference in OS version. Restricting to x86_64-linux-gnu and ubuntu, I have faced these issues (even with -DUSE_STATIC_LIBS=on and -DUSE_MPI=off):


Example: CMake build flags

# cpu only build
cmake .. -DUSE_MPI=off -DUSE_STATIC_LIBS=on -DCOMPILE_CUDA=off -DCOMPILE_CPU=on

# cuda build
cmake .. -DUSE_MPI=off -DUSE_STATIC_LIBS=on -DCOMPILE_PASCAL=on -DCOMPILE_VOLTA=on -DCOMPILE_AMPERE=on -DBUILD_ARCH=x86-64