VSCode launched dalle-playground
's backend/app.py
Python process like so:
dalle-playground git:(main) ✗ cd /Users/birch/git/dalle-playground
/usr/bin/env /Users/birch/anaconda3/envs/torch-nightly/bin/python /Users/birch/.vscode/extensions/ms-python.python-2022.6.3/pythonFiles/lib/python/debugpy/launcher 52337 -- /Users/birch/git/dalle-playground/backend/app.py 8080
Using the following launch.json
:
And with the following hardcoded changes to my local iree.py
(obviously it'd be better to put this in the calling code, but I couldn't understand through all the abstraction where I could configure that):
extra_args = []
# extra_args=["--mlir-print-ir-after-all"]
if platform.system() == "Darwin" and platform.machine() == "arm64":
extra_args += ["--iree-llvm-target-triple=arm64-apple-darwin21.5.0"]
+ # my hardcoded additions to iree.py:
+ extra_args += ["--iree-flow-demote-i64-to-i32",
+ "--iree-vulkan-target-triple=m1-moltenvk-macos",
+ "--iree-llvm-target-cpu-features=host",
+ "--iree-mhlo-demote-i64-to-i32=false"]
Process emitted the following output:
/Users/runner/work/iree/iree/main_checkout/runtime/src/iree/hal/vulkan/debug_reporter.cc:38] vkCreateDevice: Attempting to create a VkDevice from a VkPhysicalDevice which is from a portability driver without the VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR bit in the VkInstanceCreateInfo flags being set and the VK_KHR_portability_enumeration extension enabled. In future versions of the loader this VkPhysicalDevice will not be enumerated.
E /Users/runner/work/iree/iree/main_checkout/runtime/src/iree/hal/vulkan/debug_reporter.cc:38] vkCreateDevice: Attempting to create a VkDevice from a VkPhysicalDevice which is from a portability driver without the VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR bit in the VkInstanceCreateInfo flags being set and the VK_KHR_portability_enumeration extension enabled. In future versions of the loader this VkPhysicalDevice will not be enumerated.
--> Starting DALL-E Server. This might take up to two minutes.
wandb: Currently logged in as: anony-moose-278165. Use `wandb login --relogin` to force relogin
wandb: Tracking run with wandb version 0.12.17
wandb: Run data is saved locally in /Users/birch/git/dalle-playground/wandb/run-20220606_225754-17uz2gsb
wandb: Run `wandb offline` to turn off syncing.
wandb: Syncing run distinctive-wave-19
wandb: ⭐️ View project at [redacted]
wandb: 🚀 View run at [redacted]
wandb: WARNING Do NOT share these links with anyone. They can be used to claim your runs.
wandb: Downloading large artifact wzoooa1c:latest, 1672.79MB. 7 files... Done. 0:0:0
E /Users/runner/work/iree/iree/main_checkout/runtime/src/iree/hal/vulkan/debug_reporter.cc:38] Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-01091 ] Object 0: handle = 0x11710c618, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xa7bb8db6 | vkCreateShaderModule(): The SPIR-V Capability (StorageBuffer8BitAccess) was declared, but none of the requirements were met to use it. The Vulkan spec states: If pCode declares any of the capabilities listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://vulkan.lunarg.com/doc/view/1.3.211.0/mac/1.3-extensions/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-01091)
E /Users/runner/work/iree/iree/main_checkout/runtime/src/iree/hal/vulkan/debug_reporter.cc:38] Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-01091 ] Object 0: handle = 0x11710c618, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xa7bb8db6 | vkCreateShaderModule(): The SPIR-V Capability (Int8) was declared, but none of the requirements were met to use it. The Vulkan spec states: If pCode declares any of the capabilities listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://vulkan.lunarg.com/doc/view/1.3.211.0/mac/1.3-extensions/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-01091)
E /Users/runner/work/iree/iree/main_checkout/runtime/src/iree/hal/vulkan/debug_reporter.cc:38] Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-04147 ] Object 0: handle = 0x11710c618, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x3d492883 | vkCreateShaderModule(): The SPIR-V Extension (SPV_KHR_8bit_storage) was declared, but none of the requirements were met to use it. The Vulkan spec states: If pCode declares any of the SPIR-V extensions listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://vulkan.lunarg.com/doc/view/1.3.211.0/mac/1.3-extensions/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-04147)
E /Users/runner/work/iree/iree/main_checkout/runtime/src/iree/hal/vulkan/debug_reporter.cc:38] Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-01091 ] Object 0: handle = 0x11710c618, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xa7bb8db6 | vkCreateShaderModule(): The SPIR-V Capability (StorageBuffer8BitAccess) was declared, but none of the requirements were met to use it. The Vulkan spec states: If pCode declares any of the capabilities listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://vulkan.lunarg.com/doc/view/1.3.211.0/mac/1.3-extensions/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-01091)
E /Users/runner/work/iree/iree/main_checkout/runtime/src/iree/hal/vulkan/debug_reporter.cc:38] Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-01091 ] Object 0: handle = 0x11710c618, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xa7bb8db6 | vkCreateShaderModule(): The SPIR-V Capability (Int8) was declared, but none of the requirements were met to use it. The Vulkan spec states: If pCode declares any of the capabilities listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://vulkan.lunarg.com/doc/view/1.3.211.0/mac/1.3-extensions/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-01091)
E /Users/runner/work/iree/iree/main_checkout/runtime/src/iree/hal/vulkan/debug_reporter.cc:38] Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-04147 ] Object 0: handle = 0x11710c618, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x3d492883 | vkCreateShaderModule(): The SPIR-V Extension (SPV_KHR_8bit_storage) was declared, but none of the requirements were met to use it. The Vulkan spec states: If pCode declares any of the SPIR-V extensions listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://vulkan.lunarg.com/doc/view/1.3.211.0/mac/1.3-extensions/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-04147)
Failed with this error:
failed to legalize operation 'mhlo.scatter' that was explicitly marked illegal
(full stack trace here).