Skip to content

Commit

Permalink
Update Dockerfile for 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayuan-Gu committed Apr 3, 2023
1 parent ac0f707 commit ee6979f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ SHELL ["/bin/bash", "-c"]

# https://github.com/haosulab/ManiSkill/issues/9
COPY nvidia_icd.json /usr/share/vulkan/icd.d/nvidia_icd.json
COPY nvidia_layers.json /etc/vulkan/implicit_layer.d/nvidia_layers.json

RUN pip install mani-skill2==0.4.1 && pip cache purge
RUN pip install mani-skill2==0.4.2 && pip cache purge
21 changes: 21 additions & 0 deletions docker/nvidia_layers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"file_format_version" : "1.0.0",
"layer": {
"name": "VK_LAYER_NV_optimus",
"type": "INSTANCE",
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.2.155",
"implementation_version" : "1",
"description" : "NVIDIA Optimus layer",
"functions": {
"vkGetInstanceProcAddr": "vk_optimusGetInstanceProcAddr",
"vkGetDeviceProcAddr": "vk_optimusGetDeviceProcAddr"
},
"enable_environment": {
"__NV_PRIME_RENDER_OFFLOAD": "1"
},
"disable_environment": {
"DISABLE_LAYER_NV_OPTIMUS_1": ""
}
}
}

0 comments on commit ee6979f

Please sign in to comment.