From 9706eca5886cd4e5f56f31fc1cec17532f6ac219 Mon Sep 17 00:00:00 2001 From: a-saraf Date: Wed, 25 Oct 2023 08:01:32 +0530 Subject: [PATCH] minor conda --- sims/Timeloop/Dockerfile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/sims/Timeloop/Dockerfile b/sims/Timeloop/Dockerfile index 9d30fda7..a9f8e16f 100644 --- a/sims/Timeloop/Dockerfile +++ b/sims/Timeloop/Dockerfile @@ -26,17 +26,16 @@ RUN chown -R 1000:root /home/workspace && chmod -R 775 /home/workspace RUN git clone --recursive https://github.com/srivatsankrishnan/oss-arch-gym.git RUN chown -R 1000:root /home/workspace && chmod -R 775 /home/workspace RUN cd oss-arch-gym -SHELL ["which", "conda"] -# RUN conda env create -f environment.yml -# RUN apt-get update && apt-get -y install libgmp-dev gcc g++ +RUN conda env create -f environment.yml +RUN apt-get update && apt-get -y install libgmp-dev gcc g++ -# # Make RUN commands use the new environment: -# RUN echo "conda activate oss-arch-gym" >> ~/.bashrc -# SHELL ["conda", "run", "-n", "oss-arch-gym", "/bin/bash", "--login", "-c"] +# Make RUN commands use the new environment: +RUN echo "conda activate oss-arch-gym" >> ~/.bashrc +SHELL ["conda", "run", "-n", "oss-arch-gym", "/bin/bash", "--login", "-c"] -# RUN cd oss-arch-gym/acme && pip install .[jax,tf,testing,envs] && pip install envlogger[tfds] && cd ../ && pip install -e . && pip install absl-py && pip install scikit-optimize -# ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bin/conda/envs/oss-arch-gym/lib -# RUN echo $LD_LIBRARY_PATH +RUN cd oss-arch-gym/acme && pip install .[jax,tf,testing,envs] && pip install envlogger[tfds] && cd ../ && pip install -e . && pip install absl-py && pip install scikit-optimize +ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bin/conda/envs/oss-arch-gym/lib +RUN echo $LD_LIBRARY_PATH -# ENTRYPOINT ["conda", "run", "-n", "oss-arch-gym", "python", "/home/workspace/src/timeloop-examples/workspace/final-project/example_designs/eyeriss_like/arch-gym/sims/Timeloop/launch_gcp.py"] +ENTRYPOINT ["conda", "run", "-n", "oss-arch-gym", "python", "/home/workspace/src/timeloop-examples/workspace/final-project/example_designs/eyeriss_like/arch-gym/sims/Timeloop/launch_gcp.py"]