Skip to content

mattatz/GPUMatrixMultiplicationTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPUMatrixMultiplicationTest

GPU matrix multiplication in Unity.

Usage

float[,] A = new float[1024, 512];
float[,] B = new float[512, 256];

// matmul : ComputeShader (MatMul.compute)
float[,] C = GPUMatrixMultiplication.Multiply(matmul, A, B);

// float[,] C = GPUMatrixMultiplication.Multiply(matmul, A, B, GPUMatrixMultiplicationMethod.SharedMemory); // default
// float[,] C = GPUMatrixMultiplication.Multiply(matmul, A, B, GPUMatrixMultiplicationMethod.Naive); // naive impl

Resourses

Compatibility

tested on Unity 2017.0.3, Windows 10 (GTX 1060).

About

GPU matrix multiplication in Unity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages