Implements GEMM inside a CUDA block (test inc.)