// Compute determinant function
[AutoPyBindCUDA]
[CUDAKernel]
[Differentiable]
void compute_determinant(DiffTensorView mat, DiffTensorView output) {
matrix<float, N, N> mat_s;
float det;
[MaxIters(N)]
for (int i = 0; i < N; i++) {
[MaxIters(N)]
for (int j = 0; j < N; j++) {
mat_s[i][j] = mat[i, j];
}
}
output[0] = determinant(mat_s);
N is defined correctly as a static compile time constant.
I get the following error message on trying to load this function - Essentially in the .cu file, the slang determinant function is not accessible. Is there a way around this, other than writing my own determinant function in the .slang file?
N is defined correctly as a static compile time constant.
I get the following error message on trying to load this function - Essentially in the .cu file, the slang determinant function is not accessible. Is there a way around this, other than writing my own determinant function in the .slang file?