- Nvidia Driver 375.39 on ubuntu is broken when it comes to EGL. Follow comment #11 to fix the host machine.
- To fix an nvidia-docker driver mount, you need to either fix
/var/lib/nvidia-docker/volumes/nvidia_driver/375.39/lib64
or use a docker viadocker run -it --rm -v nvidia_driver_375.39:/nvidia_driver debian
to gain write permissions to the drivers, and patch them.- Copy
/usr/lib/nvidia-375/libEGL.so.375.39
into the{nvidia_driver}/lib64/
directory - Make sure the symlinks for
{nvidia_driver}/lib64/libEGL.so.1
and{nvidia_driver}/lib64/libEGL.so
eventually link to thelibEGL.so.375.39
file.
- Copy
- To fix an nvidia-docker driver mount, you need to either fix
- If you have the environment variable
DISPLAY
set, EGL will try and use the actual Display for offscreen OpenGL rendering instead of the headless route. This is difficult (but not impossible) because now you must run the command as the same user as the graphically logged in user.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import random | |
import h5py | |
from model.ModelUtil import validBounds, fixBounds, anneal_value, norm_state, norm_action, norm_reward, checkValidData | |
import copy | |
import sys | |
class ExperienceMemory(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import h5py | |
# import lasagne | |
import sys | |
import copy | |
sys.path.append('../') | |
from model.ModelUtil import norm_state, scale_state, norm_action, scale_action, action_bound_std, scale_reward, norm_reward | |
from algorithm.AlgorithmInterface import AlgorithmInterface | |
from model.LearningUtil import loglikelihood_keras, likelihood_keras, kl_keras, kl_D_keras, entropy_keras | |
from keras.optimizers import SGD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
# import roboverse.bullet as bullet | |
import pybullet as p | |
import numpy as np | |
def connect(): | |
clid = p.connect(p.SHARED_MEMORY) | |
if (clid < 0): | |
p.connect(p.GUI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Helper functions to save git information every time you | |
Requirements: | |
- GitPython==2.1.12 | |
(Probably works on other GitPython versions, but this is the version I've tested.) | |
Usage: | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Base container that includes all dependencies but not the actual repo | |
# Updated from templates in the [softlearning (SAC) library](https://github.com/rail-berkeley/softlearning) | |
FROM nvidia/cudagl:11.4.2-base-ubuntu20.04 as base | |
# ARCH and CUDA are specified again because the FROM directive resets ARGs | |
# (but their default value is retained if set previously) | |
SHELL ["/bin/bash", "-c"] | |