Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

unable to load mxnet in Rstudio using GPU #347

Closed
mpearmain opened this issue Oct 21, 2015 · 4 comments
Closed

unable to load mxnet in Rstudio using GPU #347

mpearmain opened this issue Oct 21, 2015 · 4 comments
Labels

Comments

@mpearmain
Copy link

changed config.mk

whether use CUDA during compile

USE_CUDA = 1

add the path to CUDA libary to link and compile flag

if you have already add them to enviroment variable, leave it as NONE

USE_CUDA_PATH = /usr/local/cuda
#USE_CUDA_PATH = NONE

everything builds and R-package installs

Compiles and can load via CLI

library(mxnet)

Within Rstudio fails

library(mxnet)
Error : .onLoad failed in loadNamespace() for 'mxnet', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/home/mpearmain/R/x86_64-pc-linux-gnu-library/3.2/mxnet/libs/libmxnet.so':
libcudart.so.7.0: cannot open shared object file: No such file or directory
Error: package or namespace load failed for ‘mxnet’

@tqchen
Copy link
Member

tqchen commented Oct 21, 2015

You want to add the path to /usr/local/cuda to LD_LIBRARY_PATH on your environment variable

@pluskid pluskid closed this as completed Oct 27, 2015
@dselivanov
Copy link

On my ubuntu machine I added following strings to .profile:

export CUDA_HOME=/usr/local/cuda 
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}

Works for me.

@Sat9443321
Copy link

Sat9443321 commented Jun 5, 2017

I did the same in windows platform. but it returns the same error "enable the cuda". Please suggest how to proceed the gpu computing with windows platform.

@thirdwing
Copy link
Contributor

@Sat9443321 Can you give more info on error "enable the cuda"?

@thirdwing thirdwing added the R label Jun 14, 2017
anirudh2290 pushed a commit to anirudh2290/mxnet that referenced this issue Jan 11, 2018
* Fix warnings in unittest_lockfree.cc

* Fix travis.yml
iblislin added a commit to iblislin/incubator-mxnet that referenced this issue Mar 18, 2018
* ndarray: add `Base.show(io, MIME"text/plain")`

e.g. make Array of NDArray show like this
```julia
julia> [mx.zeros(100)]
1-element Array{MXNet.mx.NDArray,1}:
 NDArray Float32[0.0, 0.0, 0.0  … 0.0, 0.0, 0.0]
```

* test cases
joseph-wakeling-sociomantic added a commit to joseph-wakeling-sociomantic/mxnet that referenced this issue Mar 23, 2018
https://github.com/apache/incubator-mxnet/releases/tag/1.1.0

A quite extended amount of manual work was needed here to resolve all
the conflicts, almost none due to the tsunami fork!

Some diffs seemed to survive the merge, and were fixed via manually
checking out the files in question from the upstream 1.1.0 tag.

* 3rdparty/cub ()...05eb57fa(05eb57fa) (1 commits)
  > Merge pull request sociomantic-tsunami#1 from ptrendx/update

* 3rdparty/googletest ()...release-1.8.0(ec44c6c) (1 commits)
  > Merge pull request apache#821 from mazong1123/master

* 3rdparty/openmp ()...37c7212(37c7212) (1 commits)
  > Merging r317115:

* 3rdparty/cub ()...05eb57fa(05eb57fa) (1 commits)
  > Merge pull request sociomantic-tsunami#1 from ptrendx/update

* 3rdparty/googletest ()...release-1.8.0(ec44c6c) (1 commits)
  > Merge pull request apache#821 from mazong1123/master

* 3rdparty/openmp ()...37c7212(37c7212) (1 commits)
  > Merging r317115:

* dmlc-core 87b7ffa(87b7ffa)...6389c10(6389c10) (20 commits)
  > Fix symbol demangling on stacktraces under Linux. (apache#356)
  > Add more environment variables to support 3rd-party S3 implementations (apache#354)
  > add qid as ranklib format (apache#317)
  > Make choice of archiver configurable (apache#352)
  > Fix warnings in unittest_lockfree.cc, fix travis CI (apache#347)
  (...)

* mshadow 2d7780c(2d7780c)...16ac8cd(16ac8cd) (5 commits)
  > Add fully qualified type on define default_real_t (apache#317)
  > fix AddTakeGradLargeBatch for CPU. close apache#235 (apache#316)
  > fix float16 min and max values (apache#315)
  > [Windows] make Packet::size constexpr (apache#313)
  > add GetRndEngine (apache#308)

* nnvm e4a138a(e4a138a)...7a052d6(7a052d6) (3 commits)
  > [SYMBOL] Add __iter__ and GetChildren for symbol (apache#268)
  > API call to get symbol output count (apache#270)
  > [FRONTEND] Fix mxnet multi outputs (apache#271)
eric-haibin-lin pushed a commit to eric-haibin-lin/mxnet that referenced this issue Apr 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants