Skip to content

Commit

Permalink
Add VectorComputeINTEL capability to the list of capabilities. (#914)
Browse files Browse the repository at this point in the history
VectorComputeINTEL capability is needed for several vc features
including named_barrier.
  • Loading branch information
mshahneo authored Oct 8, 2024
1 parent 2ce71c3 commit e1057b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Transforms/SetSPIRVCapabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ struct SetSPIRVCapabilitiesPass
spirv::Capability::AtomicFloat32AddEXT,
spirv::Capability::ExpectAssumeKHR,
spirv::Capability::VectorAnyINTEL,
spirv::Capability::VectorComputeINTEL,
// clang-format on
};
spirv::Capability caps_vulkan[] = {
Expand Down
2 changes: 1 addition & 1 deletion test/Transforms/set-spirv-capability.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module attributes {gpu.container_module} {

// OPENCL: module attributes {gpu.container_module} {
// OPENCL: gpu.module @main_kernel attributes {spirv.target_env = #spirv.target_env<#spirv.vce<v1.0, [Addresses, Bfloat16ConversionINTEL, BFloat16TypeKHR, Float16Buffer, Int64, Int16, Int8, Kernel, Linkage, Vector16, GenericPointer, Groups, Float16, Float64, AtomicFloat32AddEXT, ExpectAssumeKHR, VectorAnyINTEL], [SPV_EXT_shader_atomic_float_add, SPV_KHR_bfloat16, SPV_KHR_expect_assume, SPV_INTEL_bfloat16_conversion, SPV_INTEL_vector_compute]>, api=OpenCL, #spirv.resource_limits<>>} {
// OPENCL: gpu.module @main_kernel attributes {spirv.target_env = #spirv.target_env<#spirv.vce<v1.0, [Addresses, Bfloat16ConversionINTEL, BFloat16TypeKHR, Float16Buffer, Int64, Int16, Int8, Kernel, Linkage, Vector16, GenericPointer, Groups, Float16, Float64, AtomicFloat32AddEXT, ExpectAssumeKHR, VectorAnyINTEL, VectorComputeINTEL], [SPV_EXT_shader_atomic_float_add, SPV_KHR_bfloat16, SPV_KHR_expect_assume, SPV_INTEL_bfloat16_conversion, SPV_INTEL_vector_compute]>, api=OpenCL, #spirv.resource_limits<>>} {
// VULKAN: module attributes {gpu.container_module} {
// VULKAN: gpu.module @main_kernel attributes {spirv.target_env = #spirv.target_env<#spirv.vce<v1.0, [Shader], [SPV_KHR_storage_buffer_storage_class]>, api=Vulkan, #spirv.resource_limits<>>} {
gpu.module @main_kernel {
Expand Down

0 comments on commit e1057b4

Please sign in to comment.