Skip to content

Commit

Permalink
Test vmvx instead of vulkan-spirv for multiple target_backends test i…
Browse files Browse the repository at this point in the history
…n `compiler_core_test.py`. (#18011)

Thus, we could build iree without any gpu related targets.

e.g.
use cmake with:
```
  "-DIREE_TARGET_BACKEND_CUDA=OFF"
  "-DIREE_TARGET_BACKEND_METAL_SPIRV=OFF"
  "-DIREE_TARGET_BACKEND_ROCM=OFF"
  "-DIREE_TARGET_BACKEND_VULKAN_SPIRV=OFF"
  "-DIREE_TARGET_BACKEND_WEBGPU_SPIRV=OFF"
  "-DIREE_HAL_DRIVER_CUDA=OFF"
  "-DIREE_HAL_DRIVER_HIP=OFF"
  "-DIREE_HAL_DRIVER_METAL=OFF"
  "-DIREE_HAL_DRIVER_VULKAN=OFF"
```

Signed-off-by: Jerry Shih <bignose1007@gmail.com>
  • Loading branch information
JerryShih committed Jul 26, 2024
1 parent afea353 commit 13a18a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/bindings/python/test/tools/compiler_core_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def testCompileStrLLVMCPU(self):
# See: https://github.com/iree-org/iree/issues/4436
def testCompileMultipleBackends(self):
binary = iree.compiler.tools.compile_str(
SIMPLE_MUL_ASM, target_backends=["llvm-cpu", "vulkan-spirv"]
SIMPLE_MUL_ASM, target_backends=["llvm-cpu", "vmvx"]
)
logging.info("Flatbuffer size = %d", len(binary))
self.assertTrue(binary)
Expand Down

0 comments on commit 13a18a3

Please sign in to comment.