-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem & questions #55
Comments
|
I switched to cuda 12.4 and now runtime error occured when converting triplet sparse matrix to COO format. int N = 3;
DeviceTripletMatrix<float, 1> A;
DeviceDenseVector<float> b(N);
DeviceDenseVector<float> x(N);
DeviceDenseVector<float> y(N);
A.resize_triplets(N * N);
A.reshape(N, N);
std::cout << "sizes:\n";
std::cout << A.row_indices().size()
<< " " << A.col_indices().size()
<< " " << A.values().size() << std::endl;
ParallelFor(256).apply(N * N, [row_idx = A.row_indices().viewer(),
col_idx = A.col_indices().viewer(),
val = A.values().viewer(),
b = b.viewer(), N]__device__(int i)mutable {
row_idx(i) = i % N;
col_idx(i) = i / N;
val(i) = static_cast<float>(i * i);
if (i < N) {
b(i) = static_cast<float>(i);
}
});
std::cout << "Filled A and b\n";
LinearSystemContext ctx;
std::cout << "Context created\n";
DeviceCOOMatrix<float> A_coo;
ctx.convert(A, A_coo); // cuda error triggers here terminal output:
Is specific version of cuda required? Could you please list your configurations or a make a list of version requirements? |
https://github.com/MuGdxy/muda-app/tree/linear_system I test your code in debug and release mode, in the following platform:
but not get any error. |
I cloned the repo you provided but got the same runtime error 😭
Also failed with the same runtime error on a remote archlinux machine with GNU 13.2.0 and cuda 12.5.82 all commands I executed:
cmake configure output on archlinux machine:
|
Trying the next option: container |
Finally problem was resolved with docker. A starter project with Muda, SFML and Eigen, working with sparse matrix storage and solving runs on the container without runtime errors. Currently the image is built with |
spmv
(whilesolve
works well):terminal output:
I wonder if there is any problem in mu Muda code or the problem is caused somewhere else.
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: