Skip to content

Trying to build the image with a machine with 16GB of RAM is impossible. #290

Closed Answered by tamastarjanyi
tamastarjanyi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Thanks for the answer!
I was using the guide from here.

runtime_compute_cap=90
docker build . -f Dockerfile-cuda --build-arg CUDA_COMPUTE_CAP=$runtime_compute_cap

Now I made a minor change in Dockerfile-cuda and added:

ARG RAYON_NUM_THREADS
ARG CARGO_BUILD_JOBS
ARG CARGO_BUILD_INCREMENTAL

And now using

docker build . -f Dockerfile-cuda --build-arg CUDA_COMPUTE_CAP=$runtime_compute_cap --build-arg RAYON_NUM_THREADS=1 --build-arg CARGO_BUILD_JOBS=1 --build-arg CARGO_BUILD_INCREMENTAL=true

Without CARGO_BUILD_JOBS I had 8 parallel jobs (8 cores in my machine) each running 4 cicc causing OOM again. But now with 1 job and 1 cicc per each compile is working fine just very slow. But than…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@OlivierDehaene
Comment options

@OlivierDehaene
Comment options

@tamastarjanyi
Comment options

Answer selected by OlivierDehaene
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants