Skip to content

Instantly share code, notes, and snippets.

@monorimet
Created September 1, 2022 15:39
Show Gist options
  • Save monorimet/0942bd660e3d7200d34bf6060e552ae2 to your computer and use it in GitHub Desktop.
Save monorimet/0942bd660e3d7200d34bf6060e552ae2 to your computer and use it in GitHub Desktop.
E iree.compiler.tools.binaries.CompilerToolError: Error invoking IREE compiler tool iree-compile
E Diagnostics:
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:568:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %19 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%18 : tensor<?x64x?x?xf32>) outs(%14 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:568:11: error: failed to serialize executables
E %19 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%18 : tensor<?x64x?x?xf32>) outs(%14 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:587:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %30 = linalg.pooling_nchw_max {dilations = dense<1> : vector<2xi64>, strides = dense<2> : vector<2xi64>} ins(%20, %29 : tensor<?x64x?x?xf32>, tensor<3x3xf32>) outs(%28 : tensor<?x64x?x?xf32>) -> tensor<?x64x?x?xf32>
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:587:11: error: failed to serialize executables
E %30 = linalg.pooling_nchw_max {dilations = dense<1> : vector<2xi64>, strides = dense<2> : vector<2xi64>} ins(%20, %29 : tensor<?x64x?x?xf32>, tensor<3x3xf32>) outs(%28 : tensor<?x64x?x?xf32>) -> tensor<?x64x?x?xf32>
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:602:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %34 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%33 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:602:11: error: failed to serialize executables
E %34 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%33 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:626:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %39 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%38 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:626:11: error: failed to serialize executables
E %39 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%38 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:634:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %42 = linalg.conv_2d_nchw_fchw {dilations = dense<1> : vector<2xi64>, strides = dense<1> : vector<2xi64>} ins(%39, %cst_501 : tensor<?x64x?x?xf32>, tensor<256x64x1x1xf32>) outs(%41 : tensor<?x256x?x?xf32>) -> tensor<?x256x?x?xf32>
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:634:11: error: failed to serialize executables
E %42 = linalg.conv_2d_nchw_fchw {dilations = dense<1> : vector<2xi64>, strides = dense<1> : vector<2xi64>} ins(%39, %cst_501 : tensor<?x64x?x?xf32>, tensor<256x64x1x1xf32>) outs(%41 : tensor<?x256x?x?xf32>) -> tensor<?x256x?x?xf32>
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:686:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %52 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%51 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:686:11: error: failed to serialize executables
E %52 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%51 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:710:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %57 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%56 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:710:11: error: failed to serialize executables
E %57 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%56 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:735:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %62 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%61 : tensor<?x256x?x?xf32>) outs(%40 : tensor<?x256x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:735:11: error: failed to serialize executables
E %62 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%61 : tensor<?x256x?x?xf32>) outs(%40 : tensor<?x256x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:755:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %66 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%65 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:755:11: error: failed to serialize executables
E %66 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%65 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:549:11: error: failed to legalize operation 'arith.floordivsi'
E %11 = arith.floordivsi %10, %c2_i64 : i64
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:779:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"vulkan", "vulkan-spirv-fb", {spv.target_env = #spv.target_env<#spv.vce<v1.5, [Shader, Float64, Float16, Int64, Int16, Int8, StorageBuffer16BitAccess, StorageUniform16, StoragePushConstant16, StorageBuffer8BitAccess, UniformAndStorageBuffer8BitAccess, StoragePushConstant8, GroupNonUniform, GroupNonUniformVote, GroupNonUniformArithmetic, GroupNonUniformBallot, GroupNonUniformShuffle, GroupNonUniformShuffleRelative, GroupNonUniformClustered, GroupNonUniformQuad, VariablePointers, VariablePointersStorageBuffer, CooperativeMatrixNV], [SPV_KHR_16bit_storage, SPV_KHR_8bit_storage, SPV_KHR_storage_buffer_storage_class, SPV_KHR_variable_pointers, SPV_NV_cooperative_matrix]>, NVIDIA:DiscreteGPU, #spv.resource_limits<max_compute_shared_memory_size = 49152, max_compute_workgroup_invocations = 1024, max_compute_workgroup_size = [1024, 1024, 64], cooperative_matrix_properties_nv = [#spv.coop_matrix_props<m_size = 8, n_size = 8, k_size = 32, a_type = i8, b_type = i8, c_type = i32, result_type = i32, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f16, result_type = f16, scope = <Subgroup>>, #spv.coop_matrix_props<m_size = 16, n_size = 16, k_size = 16, a_type = f16, b_type = f16, c_type = f32, result_type = f32, scope = <Subgroup>>]>>}>
E %71 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%70 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E <stdin>:779:11: error: failed to serialize executables
E %71 = linalg.generic {indexing_maps = [#map0, #map0], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%70 : tensor<?x64x?x?xf32>) outs(%27 : tensor<?x64x?x?xf32>) {
E ^
E <stdin>:7:3: note: called from
E func.func @forward(%arg0: tensor<?x?x?x?xf32>) -> tensor<?x1000xf32> {
E ^
E compilation failed
E
E
E Invoked with:
E iree-compile /home/ean/SHARK/shark.venv/lib/python3.10/site-packages/iree/compiler/tools/../_mlir_libs/iree-compile - --iree-input-type=none --iree-vm-bytecode-module-output-format=flatbuffer-binary --iree-hal-target-backends=vulkan --iree-llvm-embedded-linker-path=/home/ean/SHARK/shark.venv/lib/python3.10/site-packages/iree/compiler/tools/../_mlir_libs/iree-lld --mlir-print-debuginfo --mlir-print-op-on-diagnostic=false --iree-llvm-target-cpu-features=host -iree-vulkan-target-triple=ampere-rtx3080-linux --iree-stream-resource-index-bits=64 --iree-vm-target-index-bits=64
E
E Need more information? Set IREE_SAVE_TEMPS=/some/dir in your environment to save all artifacts and reproducers.
shark.venv/lib/python3.10/site-packages/iree/compiler/tools/binaries.py:196: CompilerToolError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment