-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QNNPACK, Sparsity] Add wrapper for the kernels
Summary: Following QNNPACK methodology, add wrappers for the sparse kernels Test Plan: q8gemm-sparse-test Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 409ea6a0ce6ddef6b10d04243e1d1bdba63c561d Pull Request resolved: #51150
- Loading branch information
1 parent
a9f845c
commit 01ecf3a
Showing
10 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/8x4c1x4-packed-sse2.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#define MR 8 | ||
#define COL_BLOCK_SIZE 4 | ||
#define PACKED_A_BLOCK_SIZE COL_BLOCK_SIZE*MR |
3 changes: 3 additions & 0 deletions
3
aten/src/ATen/native/quantized/cpu/qnnpack/wrappers/q8gemm_sparse/4x4-packA-aarch32-neon.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#if defined(__arm__) | ||
#include <q8gemm_sparse/4x4-packA-aarch32-neon.S> | ||
#endif /* defined(__arm__) */ |
3 changes: 3 additions & 0 deletions
3
...Ten/native/quantized/cpu/qnnpack/wrappers/q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#if defined(__arm__) | ||
#include <q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S> | ||
#endif /* defined(__arm__) */ |
3 changes: 3 additions & 0 deletions
3
...Ten/native/quantized/cpu/qnnpack/wrappers/q8gemm_sparse/4x8c8x1-dq-packedA-aarch32-neon.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#if defined(__arm__) | ||
#include <q8gemm_sparse/4x8c8x1-dq-packedA-aarch32-neon.S> | ||
#endif /* defined(__arm__) */ |
3 changes: 3 additions & 0 deletions
3
aten/src/ATen/native/quantized/cpu/qnnpack/wrappers/q8gemm_sparse/8x4-packA-aarch64-neon.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#if defined(__aarch64__) | ||
#include <q8gemm_sparse/8x4-packA-aarch64-neon.S> | ||
#endif /* defined(__arm__) */ |
4 changes: 4 additions & 0 deletions
4
aten/src/ATen/native/quantized/cpu/qnnpack/wrappers/q8gemm_sparse/8x4c1x4-packed-sse2.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#if defined(__i386__) || defined(__i686__) || defined(__x86_64__) | ||
#include <q8gemm_sparse/8x4-packA-sse2.c> | ||
#include <q8gemm_sparse/8x4c1x4-dq-packedA-sse2.c> | ||
#endif /* defined(__i386__) || defined(__i686__) || defined(__x86_64__) */ |
3 changes: 3 additions & 0 deletions
3
...Ten/native/quantized/cpu/qnnpack/wrappers/q8gemm_sparse/8x8c1x4-dq-packedA-aarch64-neon.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#if defined(__aarch64__) | ||
#include <q8gemm_sparse/8x8c1x4-dq-packedA-aarch64-neon.S> | ||
#endif /* defined(__arm__) */ |
3 changes: 3 additions & 0 deletions
3
...Ten/native/quantized/cpu/qnnpack/wrappers/q8gemm_sparse/8x8c8x1-dq-packedA-aarch64-neon.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#if defined(__aarch64__) | ||
#include <q8gemm_sparse/8x8c8x1-dq-packedA-aarch64-neon.S> | ||
#endif /* defined(__arm__) */ |