| # Copyright 2023 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| sparrow_static_module( |
| NAME |
| conv1x1_test |
| SRC |
| "conv1x1_test.mlir" |
| FLAGS |
| "-iree-input-type=tosa" |
| "-riscv-v-fixed-length-vector-lmul-max=8" |
| EMITC |
| ) |
| |
| sparrow_vmvx_module( |
| NAME |
| conv1x1_test_vmvx |
| SRC |
| "conv1x1_test.mlir" |
| FLAGS |
| "-iree-input-type=tosa" |
| "-riscv-v-fixed-length-vector-lmul-max=8" |
| EMITC |
| VMVX |
| ) |
| |
| sparrow_test( |
| NAME |
| conv1x1_test_emitc_static |
| SRCS |
| "conv1x1_test.c" |
| DEPS |
| ::conv1x1_test_emitc |
| ::conv1x1_test_lib |
| model_util::util_static |
| LINKOPTS |
| "LINKER:--defsym=__stack_size__=64k" |
| TESTFILES |
| "conv1x1_test.run" |
| ) |
| |
| # Do not compile following models for Kelvin |
| if (${BUILD_WITH_KELVIN}) |
| return() |
| endif() |
| |
| sparrow_test( |
| NAME |
| conv1x1_test_emitc_vmvx |
| SRCS |
| "conv1x1_test.c" |
| DEPS |
| ::conv1x1_test_vmvx_emitc |
| model_util::util_vmvx |
| LINKOPTS |
| "LINKER:--defsym=__stack_size__=64k" |
| COPTS |
| "-DBUILD_VMVX" |
| TESTFILES |
| "conv1x1_vmvx_test.run" |
| ) |