12 MTL::ComputePipelineState *_mMatmulFunctionPSO;
15 MTL::CommandQueue *_mCommandQueue;
18 MTL::Buffer *_mBufferA;
19 MTL::Buffer *_mBufferB;
20 MTL::Buffer *_mBufferScales;
21 MTL::Buffer *_mBufferResult;
22 MTL::Buffer *_mParams;
31 void sendComputeCommand();
35 void encodeCommand(MTL::ComputeCommandEncoder *computeEncoder);
36 void generateRandomFloatData(MTL::Buffer *buffer,
int length);
37 void generateRandomIn4Data(MTL::Buffer *buffer,
int length);