Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build failures #178

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

mariecwhite
Copy link
Collaborator

@mariecwhite mariecwhite commented Jun 12, 2024

Replaces +v9a with +v9.2a CPU feature to fix IREE build failure:

error: 'llvm.call' op operand type mismatch for operand 0: '!llvm.struct<(ptr, ptr, i64)>' != '!llvm.ptr'
note: called from stablehlo.mlir:529:11:
note: see current operation: %120 = "llvm.call"(%34, %76, %7, %41, %84, %7, %48, %94, %7, %12, %12, %11, %10, %10, %9, %8, %96) <{CConv = #llvm.cconv<ccc>, callee = @iree_uk_mmt4d, fastmathFlags = #llvm.fastmath<none>}> : (!llvm.struct<(ptr, ptr, i64)>, i64, i64, !llvm.struct<(ptr, ptr, i64)>, i64, i64, !llvm.struct<(ptr, ptr, i64)>, i64, i64, i64, i64, i64, i32, i32, i32, i32, !llvm.ptr) -> i32
/tmp/jax_models_0.4.30_1719201699/T5_LARGE_FP32_JAX_512XI32_BATCH1/stablehlo.mlir:529:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"llvm-cpu", "embedded-elf-arm_64", {cpu = "generic", cpu_features = "+v9a,+fullfp16,+fp-armv8,+neon,+aes,+sha2,+crc,+lse,+rdm,+complxnum,+rcpc,+sha3,+sm4,+dotprod,+fp16fml,+dit,+flagm,+ssbs,+sb,+sve2-aes,+sve2-bitperm,+sve2-sha3,+sve2-sm4,+altnzcv,+fptoint,+bf16,+i8mm,+bti,+mte,+pauth,+perfmon,+predres,+spe,+ras,+reserve-x18", data_layout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32", debug_symbols = false, native_vector_size = 16 : i64, target_triple = "aarch64-unknown-unknown-eabi-elf", ukernels = "all"}>

Also disables avx512fp16 in TFLite due to this build error:

gcc: error: unrecognized command-line option '-mavx512fp16'

@mariecwhite mariecwhite force-pushed the fix-tflite-build branch 2 times, most recently from d479e13 to eecb41c Compare June 12, 2024 07:59
@mariecwhite mariecwhite requested a review from jpienaar June 24, 2024 00:10
@mariecwhite mariecwhite force-pushed the fix-tflite-build branch 4 times, most recently from a4448f3 to e467885 Compare June 24, 2024 06:31
Replaces +v9a with +v9.2a CPU feature to fix IREE build failure:

error: 'llvm.call' op operand type mismatch for operand 0: '!llvm.struct<(ptr, ptr, i64)>' != '!llvm.ptr'
note: called from stablehlo.mlir:529:11:
note: see current operation: %120 = "llvm.call"(%34, %76, %7, %41, %84, %7, %48, %94, %7, %12, %12, %11, %10, %10, %9, %8, %96) <{CConv = #llvm.cconv<ccc>, callee = @iree_uk_mmt4d, fastmathFlags = #llvm.fastmath<none>}> : (!llvm.struct<(ptr, ptr, i64)>, i64, i64, !llvm.struct<(ptr, ptr, i64)>, i64, i64, !llvm.struct<(ptr, ptr, i64)>, i64, i64, i64, i64, i64, i32, i32, i32, i32, !llvm.ptr) -> i32
/tmp/jax_models_0.4.30_1719201699/T5_LARGE_FP32_JAX_512XI32_BATCH1/stablehlo.mlir:529:11: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"llvm-cpu", "embedded-elf-arm_64", {cpu = "generic", cpu_features = "+v9a,+fullfp16,+fp-armv8,+neon,+aes,+sha2,+crc,+lse,+rdm,+complxnum,+rcpc,+sha3,+sm4,+dotprod,+fp16fml,+dit,+flagm,+ssbs,+sb,+sve2-aes,+sve2-bitperm,+sve2-sha3,+sve2-sm4,+altnzcv,+fptoint,+bf16,+i8mm,+bti,+mte,+pauth,+perfmon,+predres,+spe,+ras,+reserve-x18", data_layout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32", debug_symbols = false, native_vector_size = 16 : i64, target_triple = "aarch64-unknown-unknown-eabi-elf", ukernels = "all"}>

Also disables avx512fp16 in TFLite due to this build error:

gcc: error: unrecognized command-line option '-mavx512fp16'

Signed-off-by: mariecwhite <[email protected]>
@mariecwhite mariecwhite changed the title Fix TFLite build Fix build failures Jun 24, 2024
@mariecwhite mariecwhite merged commit e97a45a into iree-org:main Jun 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants