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

Prepare for LoongArch SX and ASX #7640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MQ-mengqing
Copy link

1, Add an option named XNNPACK_ENABLE_CPUINFO so that avoid compiling cpuinfo for LoongArch (and Hexagon).
2, Add "&& XNN_ARCH_RISCV" in transpose-config for RISCV.
3, Others are prepared for LoongArch SX and ASX.

Cc: @lixing-star @junchao-loongson

Add an option named XNNPACK_ENABLE_CPUINFO so that avoid compiling
cpuinfo for LoongArch (and Hexagon).
Add "&& XNN_ARCH_RISCV" in transpose-config for RISCV.
Others are prepared for LoongArch SX and ASX.
@MQ-mengqing
Copy link
Author

Gentle ping 😄. Is there anything I need to do? @fbarchard

@@ -197,7 +197,7 @@ static void init_transpose_config(void) {
.const_size_ukernel = (xnn_transposec_ukernel_fn) xnn_x24_transposec_ukernel__1x2_scalar,
.tile_size = 32,
};
#if XNN_ENABLE_RISCV_VECTOR
#if XNN_ENABLE_RISCV_VECTOR && XNN_ARCH_RISCV
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change seems unrelated and unnecessary, since RISCV_VECTOR is only on RISCV?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the XNNPACK_ENABLE_RISCV_VECTOR set default ON in CMakeLists.txt which csuse XNN_ENABLE_RISCV_VECTOR is true if we don't set it.
https://github.com/google/XNNPACK/blob/master/CMakeLists.txt#L138

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