Skip to content

Instantly share code, notes, and snippets.

@ailzhang
Last active October 27, 2021 10:15
Show Gist options
  • Save ailzhang/d875813069e1d481d8d25519835fb554 to your computer and use it in GitHub Desktop.
Save ailzhang/d875813069e1d481d8d25519835fb554 to your computer and use it in GitHub Desktop.
  1. Install Vulkan SDK from https://vulkan.lunarg.com/sdk/home#mac
  2. Set the following env
VULKAN_SDK=~/VulkanSDK/1.2.189.0/macOS
export VULKAN_SDK
#PATH="$PATH:$VULKAN_SDK/bin"
PATH="$VULKAN_SDK/bin:$PATH"
export PATH
DYLD_LIBRARY_PATH="$VULKAN_SDK/lib:${DYLD_LIBRARY_PATH:-}"
export DYLD_LIBRARY_PATH
VK_LAYER_PATH="$VULKAN_SDK/share/vulkan/explicit_layer.d"
export VK_LAYER_PATH
VK_ICD_FILENAMES="$VULKAN_SDK/share/vulkan/icd.d/MoltenVK_icd.json"
export VK_ICD_FILENAMES
  1. Build taichi from source following https://docs.taichi.graphics/lang/articles/contribution/dev_install TAICHI_CMAKE_ARGS="-DTI_WITH_VULKAN:BOOL=ON" python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment