slangtorch: 1.2.6
torch: 2.0.1+cu117
// just list the error part
.slangtorch_cache/float4x3/44136fa355b3678a/float4x3_cuda.cu(2793): error: class "float3" has no member "w"
.slangtorch_cache/float4x3/44136fa355b3678a/float4x3_cuda.cu(2797): error: class "float3" has no member "w"
.slangtorch_cache/float4x3/44136fa355b3678a/float4x3_cuda.cu(2801): error: class "float3" has no member "w"
.slangtorch_cache/float4x3/44136fa355b3678a/float4x3_cuda.cu(636): error: class "float3" has no member "w"
detected during instantiation of "Matrix<T, ROWS, COLS> makeMatrix<T,ROWS,COLS>(T, T, T, T, T, T, T, T, T, T, T, T) [with T=float, ROWS=4, COLS=3]"
.slangtorch_cache/float4x3/44136fa355b3678a/float4x3_cuda.cu(637): error: class "float3" has no member "w"
detected during instantiation of "Matrix<T, ROWS, COLS> makeMatrix<T,ROWS,COLS>(T, T, T, T, T, T, T, T, T, T, T, T) [with T=float, ROWS=4, COLS=3]"
.slangtorch_cache/float4x3/44136fa355b3678a/float4x3_cuda.cu(638): error: class "float3" has no member "w"
detected during instantiation of "Matrix<T, ROWS, COLS> makeMatrix<T,ROWS,COLS>(T, T, T, T, T, T, T, T, T, T, T, T) [with T=float, ROWS=4, COLS=3]"
The generated float4x3_cuda.cu is attached (change .txt to .cu)
float4x3_cuda.txt
In the example, the error goes away if I change float4x3 to float3x4 or float3x3.
Hi there, I came across an error when using float4x3 matrix.
Here is the minimal slang code
Then I load this module in python
Output
The generated
float4x3_cuda.cu
is attached (change.txt
to.cu
) float4x3_cuda.txtIn the example, the error goes away if I change float4x3 to float3x4 or float3x3.