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 !
I was trying to install this package with
install.packages("cuda.ml")ordevtools::install_github("mlverse/cuda.ml")but I got an error when building the package,There are two more,
/lib64/libc.so.6and/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,
Any suggestions would be appreciated !