Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install cuda.ml with build errors #208

Open
michaeleekk opened this issue Jun 24, 2022 · 0 comments
Open

Failed to install cuda.ml with build errors #208

michaeleekk opened this issue Jun 24, 2022 · 0 comments

Comments

@michaeleekk
Copy link

I was trying to install this package with install.packages("cuda.ml") or devtools::install_github("mlverse/cuda.ml") but I got an error when building the package,

/usr/bin/ld: cannot find /lib64/libpthread.so.0
/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/cuda.ml.dir/build.make:950: cuda.ml.so] Error 1
make[2]: Leaving directory '/tmp/RtmplgljXg/R.INSTALL8fe251ceec0/cuda.ml/src'
make[1]: *** [CMakeFiles/Makefile2:103: CMakeFiles/cuda.ml.dir/all] Error 2
make[1]: Leaving directory '/tmp/RtmplgljXg/R.INSTALL8fe251ceec0/cuda.ml/src'
make: *** [Makefile:94: all] Error 2
ERROR: compilation failed for package ‘cuda.ml’
* removing ‘/home/michael/miniconda3/envs/rapids-21.08/lib/R/library/cuda.ml’

There are two more, /lib64/libc.so.6 and /usr/lib64/libc_nonshared.a.

I tried Debian 11 or Ubuntu 20.04 but got the same issue. I wonder which distro you are using and also if you installed any dev packages regarding these files ?

I tried to workaround the issue by soft links the files when I was trying with Debian 11 but got a badalloc when running the sample code,

sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread.so /lib64/libpthread.so.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib64/libpthread_nonshared.a
sudo ln -s /usr/lib/x86_64-linux-gnu/libc.so /lib64/libc.so.6
sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib64/libc_nonshared.a
> library(cuda.ml)

clustering <- cuda_ml_kmeans(
  iris[, which(names(iris) != "Species")],
  k = 3, max_iters = 100
)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

Any suggestions would be appreciated !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant