1. A computer-executable method for performing a general matrix-matrix multiplication (GEMM) operation using a kernel compiled with optimal maximum register count (MRC), comprising: generating the kernel compiled with optimal MRC, which involves determining a fastest compiled kernel among a set of compiled kernels by comparing the speeds of the compiled kernels, each compiled kernel being compiled with a different MRC value between zero and a predetermined maximum number of registers per thread, wherein the fastest compiled kernel is determined to be the kernel with optimal MRC; receiving data representing at least two matrices; selecting the kernel compiled with optimal MRC; and performing the GEMM operation on the two matrices using the selected kernel.