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

Encountering RuntimeError in CUTEst Problem: INDEF #4

Open
hjmshi opened this issue Sep 15, 2018 · 8 comments
Open

Encountering RuntimeError in CUTEst Problem: INDEF #4

hjmshi opened this issue Sep 15, 2018 · 8 comments

Comments

@hjmshi
Copy link
Owner

hjmshi commented Sep 15, 2018

Dheevatsa, have you seen any errors of the following sort?

Traceback (most recent call last):
  File "lbfgs_tests.py", line 114, in <module>
    obj, grad, lr, backtracks, clos_evals, grad_evals, fail = optimizer.step(p, grad, options=options)
  File "../functions/LBFGS.py", line 720, in step
    self._add_update(t - t_prev, d)
  File "../functions/LBFGS.py", line 251, in _add_update
    p.data.add_(step_size, update[offset:offset + numel].view_as(p.data))
RuntimeError: Overflow when unpacking long

I observed this when testing the L-BFGS implementation on the CUTEst problems. I found this from a quick Google search: pytorch/pytorch#6339, but my version of PyTorch is 0.4.1...do you know why this might occur?

@hjmshi hjmshi changed the title Encountering RuntimeError Encountering RuntimeError in CUTEst Problem: INDEF Sep 15, 2018
@dmudiger
Copy link
Collaborator

Let me try at my end with my version of pytorch, what was the specific run command that you used - so that I can recreate the problem ?

@hjmshi
Copy link
Owner Author

hjmshi commented Sep 18, 2018

Have you installed PyCUTEst? If so, then you should be able to run python lbfgs_tests.py --problemName 'INDEF'.

I'm currently looking at CUTEst problems with Jorge. It may take some time but it will make sure that our implementation is fool-proof.

@dmudiger
Copy link
Collaborator

Setting it up now, following this - https://gist.github.com/antonior92/9fd6ac9f44c164ee42555e3a7dc5a332
Anything i need to do differently ?

@hjmshi
Copy link
Owner Author

hjmshi commented Sep 18, 2018

@dmudiger
Copy link
Collaborator

I was able to get CUTEst and pycutest both setup (on my mac), but still running into a segfault ??
pytorch) dheevatsa-mbp:examples dheevatsa$ python lbfgs_tests.py --problemName 'INDEF'
Parameters available for problem INDEF:
N = 10 (int)
N = 50 (int)
N = 100 (int)
N = 1000 (int, original value)
N = 5000 (int) [default]
ALPHA = 0.5 (float, indefiniteness) [default]
ALPHA = 1 (float)
ALPHA = 10 (float)
ALPHA = 100 (float)
ALPHA = 1000 (float)
End of parameters for problem INDEF
{'objective': 'O', 'constraints': 'U', 'regular': True, 'degree': 2, 'origin': 'A', 'internal': False, 'n': None, 'm': 0}
Segmentation fault: 11
(pytorch) dheevatsa-mbp:examples dheevatsa$

@dmudiger
Copy link
Collaborator

seems like this is also the macOS version problem, what did you do to get around it ?

@hjmshi
Copy link
Owner Author

hjmshi commented Sep 19, 2018

I didn't, I wound up using Linux. Could you run it on a Linux machine?

Interesting though that you are encountering a similar issue...

@lwn66
Copy link

lwn66 commented Jun 8, 2022

请问了解这个测试库的matlab接口吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants