You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
MatX code that appears to work correctly on my desktop machine works incorrectly (operations returns all zeros) when running on my Jetson Orin AGX (Jetpack 6.0).
To Reproduce
Run the following code on a Jetson
#include<matx.h>intmain(int argc, char **argv) {
auto a = matx::make_tensor<float>({3, 3});
auto b = matx::make_tensor<float>({3, 3});
a.SetVals({{1,2,3}, {4,5,6}, {7,8,9}});
(b = 2*a).run();
matx::print(a);
matx::print(b);
}
Expected Behavior
The code should output (result on my desktop machine):
Hi @SamDSchofield , can you give us your compiler command? I just wanted to make sure you're using the correct architecture. You can also check for CUDA errors using cuda-gdb.
Hi @cliffburdick, it turns out the issue was caused by having my CMAKE_CUDA_ARCHITECTURES set to the wrong value. Changing set(CMAKE_CUDA_ARCHITECTURES 70) to set(CMAKE_CUDA_ARCHITECTURES 87) in my CMakeLists.txt solved the issue. Thanks for your help!
Describe the Bug
MatX code that appears to work correctly on my desktop machine works incorrectly (operations returns all zeros) when running on my Jetson Orin AGX (Jetpack 6.0).
To Reproduce
Run the following code on a Jetson
Expected Behavior
The code should output (result on my desktop machine):
Instead, it outputs (on Jetson):
System Details (please complete the following information):
The text was updated successfully, but these errors were encountered: