spacemeshos / gpu-post

Spacemesh proof of space time gpu optimized setup
GNU General Public License v3.0
29 stars 9 forks source link

Add to OS X build instructions to readme #25

Closed avive closed 3 years ago

avive commented 3 years ago
  1. Install latest version of xcode with the command line dev tools.
  2. Download the Vulkan 1.2 sdk installer for OS X from https://vulkan.lunarg.com/sdk/home#mac
  3. Copy Vulkan SDK from the vulkan installer volume to a directory in your hard-drive.
  4. Install the SDK from your hard-drive and not from the installer volume by running $ sudo ./install_vulkan.py.
  5. Add the vulkan env vars to your .bash_profile file with the root location set to the sdk directory on your drive. For example, if Vulkan sdk 1.2.154 is installed then the env vars should be set like this:
export VULKAN_SDK_VERSION="1.2.154.0"
export VULKAN_ROOT_LOCATION="$HOME/dev/vulkan-sdk-1.2.154"
export VULKAN_SDK="$VULKAN_ROOT_LOCATION/macOS"
export VK_ICD_FILENAMES="$VULKAN_SDK/share/vulkan/icd.d/MoltenVK_icd.json"
export VK_LAYER_PATH="$VULKAN_SDK/share/vulkan/explicit_layers.d"
export PATH="/usr/local/opt/python/libexec/bin:$VULKAN_SDK/bin:$PATH"
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$VULKAN_SDK/lib/"

For more info see: https://vulkan.lunarg.com/doc/sdk/latest/mac/getting_started.html