taichi icon indicating copy to clipboard operation
taichi copied to clipboard

Vulkan 1.4 support

Open C4rb0n6 opened this issue 10 months ago • 5 comments

Vulkan API version not supported. I'm on Vulkan 1.4.303 and the latest NVIDIA drivers 572.16.

To reproduce, run anything on any mode (cpu, gpu, cuda, vulkan)

[Taichi] version 1.7.3, llvm 15.0.1, commit 5ec301be, win, python 3.11.8
[Taichi] Starting on arch=cuda
A s s e r t i o n   f a i l e d :   p C r e a t e I n f o - > v u l k a n A p i V e r s i o n   = =   0   | |   ( ( ( u i n t 3 2 _ t ) ( p C r e a t e I n f o - > v u l k a n A p i V e r s i o n )   > >   2 2 U )   = =   1   & &   ( ( ( u i n t 3 2 _ t ) ( p C r e a t e I n f o - > v u l k a n A p i V e r s i o n )   > >   1 2 U )   &   0 x 3 F F U )   < =   3 ) ,   f i l e   C : \ U s e r s \ A d m i n i s t r a t o r \ a c t i o n s - r u n n e r \ _ w o r k \ t a i c h i \ t a i c h i \ e x t e r n a l \ V u l k a n M e m o r y A l l o c a t o r \ i n c l u d e \ v k _ m e m _ a l l o c . h ,   l i n e   1 6 0 3 9 
 
Process finished with exit code -1073740791 (0xC0000409)

C4rb0n6 avatar Feb 01 '25 23:02 C4rb0n6

@C4rb0n6 I added support to arm also and it is working https://github.com/taichi-dev/taichi/pull/8629

johnnynunez avatar Feb 02 '25 11:02 johnnynunez

Same problem, and very difficult to reduce vulkan version

niushuqing123 avatar Feb 03 '25 10:02 niushuqing123

Reverting to NVIDIA drivers 566.36 with Vulkan 1.4.304 works for me (Taichi 1.7.3 + 1.6.0, Windows 10, 1080ti), I had the same issue before with 572.16.

3n3l avatar Feb 03 '25 11:02 3n3l

I'm on Ubuntu 24.04, with NVidia driver 570.133 and Vulkan 1.4.303 on a Quadro T500 (a laptop NVidia GPU). I'm getting a similar assertion failure:

python: /home/dev/taichi/external/VulkanMemoryAllocator/include/vk_mem_alloc.h:16036: VkResult vmaCreateAllocator(const VmaAllocatorCreateInfo * _Nonnull, VmaAllocator * _Nonnull): Assertion `pCreateInfo->vulkanApiVersion == 0 || (((uint32_t)(pCreateInfo->vulkanApiVersion) >> 22) == 1 && (((uint32_t)(pCreateInfo->vulkanApiVersion) >> 12) & 0x3FFU) <= 3)' failed.
Fatal Python error: Aborted

If I understand correctly, my assertion failure happens when memory allocation is called. Would downgrading my Vulkan SDK fix this issue?

wme7 avatar May 22 '25 13:05 wme7

No you’d have to downgrade drivers. The latest taichi version’s vma doesn’t support 1.4

On Thu, May 22, 2025 at 08:28 Manuel A. Diaz @.***> wrote:

wme7 left a comment (taichi-dev/taichi#8630) https://github.com/taichi-dev/taichi/issues/8630#issuecomment-2901232681

I'm on Ubuntu 24.04, with NVidia driver 570.133 and Vulkan 1.4.303 on a Quadro T500 (a laptop NVidia GPU). I'm getting a similar assertion failure:

python: /home/dev/taichi/external/VulkanMemoryAllocator/include/vk_mem_alloc.h:16036: VkResult vmaCreateAllocator(const VmaAllocatorCreateInfo * _Nonnull, VmaAllocator * _Nonnull): Assertion `pCreateInfo->vulkanApiVersion == 0 || (((uint32_t)(pCreateInfo->vulkanApiVersion) >> 22) == 1 && (((uint32_t)(pCreateInfo->vulkanApiVersion) >> 12) & 0x3FFU) <= 3)' failed.Fatal Python error: Aborted

If I understand correctly, my assertion failure happens when memory allocation is called. Would downgrading my Vulkan SDK fix this issue?

— Reply to this email directly, view it on GitHub https://github.com/taichi-dev/taichi/issues/8630#issuecomment-2901232681, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYBR6TK2ZIRB5XVBKTUFWND27XGI3AVCNFSM6AAAAABWJYFFSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBRGIZTENRYGE . You are receiving this because you were mentioned.Message ID: @.***>

C4rb0n6 avatar May 22 '25 13:05 C4rb0n6