Any NEGEMMLowpAssemblyMatrixMultiplyCore demo?
version: Build options: {'embed_kernels': '0', 'arch': 'arm64-v8a', 'opencl': '0', 'neon': '1', 'asserts': '1', 'debug': '1', 'os': 'android', 'Werror': '1'} Git hash=3d2d44ef55ab6b08afda8be48301ce3c55c7bc67
Platform: arm Operating System: android
Problem description: I want benchmark fixed point gemm,single thread & multi-thread. How to use NEGEMMLowpAssemblyMatrixMultiplyCore?My demo coredump. Maybe I don't use it correctly.Please provide more example.
NEGEMMLowpAssemblyMatrixMultiplyCore sgemmlowp;
Tensor src0{}, src1{}, dst{};
int m=256,n=256,k=256;
src0.allocator()->init(TensorInfo(TensorShape(k,m), 1, DataType::S8));
src1.allocator()->init(TensorInfo(TensorShape(n,k), 1, DataType::S8));
dst.allocator()->init(TensorInfo(TensorShape(n,m), 1, DataType::S32));
sgemmlowp.configure(&src0, &src1, &dst);
src0.allocator()->allocate();
src1.allocator()->allocate();
dst.allocator()->allocate();
fill_random_tensor(src0, -1.f, 1.f);
fill_random_tensor(src1, -1.f, 1.f);
fill_random_tensor(dst, -1.f, 1.f);
sgemmlowp.run();
Hi @TPcoding, I tried your example and I got this error: ERROR in fill_random_tensor ./utils/Utils.h:767: Unsupported format
Are you getting the same error?
If you are getting the same thing, the problem is that fill_random_tensor() was not made to insert floating point numbers in 8 bit signed integer tensors.
At this link: https://arm-software.github.io/ComputeLibrary/v18.11/architecture.xhtml#S4_6_4_working_with_objects
You can find an example on how to manually insert data. You can insert int8_t values (reinterpret_cast) in src0 and src1.
Hope this helps Thanks, Manuel
Closing for inactivity, feel free to reopen otherwise