Migrating CUDA matrix multiplication to strong types.