Skip to content
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

oom/memory corruption running an SDDMM (using TTTP specialized routine) #139

Closed
rohany opened this issue Jan 25, 2022 · 1 comment
Closed

Comments

@rohany
Copy link
Contributor

rohany commented Jan 25, 2022

The following program appears to OOM (killed by the job scheduler) when with a process per core on a 40 node machine, and errors out with a memory corruption bug with 2 processes (running with only 1 process raises a warning that the local size of a tensor is larger than INT_MAX) when run on the arabic-2005 matrix.

void sddmm(int nIter, int warmup, std::string filename, std::vector<int> dims, World& dw, int jdim) {
  Tensor<double> B(2, true /* is_sparse */, dims.data(), dw);
  Matrix<double> C(dims[0], jdim, dw);
  Matrix<double> D(dims[1], jdim, dw);
  C.fill_random(1.0, 1.0);
  D.fill_random(1.0, 1.0);

  B.read_sparse_from_file(filename.c_str());

  int modes[] = {0, 1};
  Tensor<double>* mats[] = {&C, &D};
  TTTP(&B, 2, modes, mats);
}
@rohany
Copy link
Contributor Author

rohany commented Feb 14, 2022

This appeared to be the same problem with dimension + 1 as discussed in #138. Fixing that makes this work.

@rohany rohany closed this as completed Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant