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

Illegal instruction #51

Closed
morusu opened this issue Nov 16, 2015 · 8 comments
Closed

Illegal instruction #51

morusu opened this issue Nov 16, 2015 · 8 comments

Comments

@morusu
Copy link

morusu commented Nov 16, 2015

hello,I loaded your code,it's very amazing! I know little about it so i have some questions.
when i run ./test-lstm , it gives error: test-lstm.cc:80:3: error: use of undeclared identifier 'unlink'; did you mean 'inline'?After googled, I add head file #include <unistd.h> and solve this problem.
Then run ./test-filter.sh , it gives anther error :./test-filter.sh: line 7: 26632 Illegal instruction: 4 hidden=20 ntrain=1001 neps=0 report_every=200 save_every=1000 lrate=1e-2 save_name=_filter ./clstmfiltertrain _filter.txt
clstmfilter FAILED
how can I do with it ?

@amitdo
Copy link
Contributor

amitdo commented Nov 17, 2015

From the README:

CLSTM is currently undergoing refactoring and significant changes; if you want a stable basis to work with, check out the separate-derivs branch:

The master branch is also working for me. You may need eigen 3.3 alpha.
My machine is running ubuntu 14.04 64bit.

@morusu
Copy link
Author

morusu commented Nov 17, 2015

grateful for ur advice. eigen 3.3 alpha have solve the problem. the ./run-test gives error at 'scons -s -c pyswig' :scons: *** [_clstm.so] Source file: clstm.i is static and is not compatible with shared target: _clstm.so . I think it's use for python , my c code has pass. right?

@amitdo
Copy link
Contributor

amitdo commented Nov 17, 2015

Try to disable these lines in run-test:

scons -s -c pyswig
scons pyswig
python test-lstm.py
set +x
scons -s -c all pyswig

Comment them like this:

#scons -s -c pyswig
#scons pyswig
#python test-lstm.py
#set +x
#scons -s -c all pyswig

Now, rerun ./run-test

Do you get "ALL TESTS PASS" ?

@morusu
Copy link
Author

morusu commented Nov 17, 2015

yes, after disable those lines, i get 'echo ALL TESTS PASS '

@amitdo
Copy link
Contributor

amitdo commented Nov 17, 2015

So you only have a problem with the python bindings.
I dont get the errors you've getting. Maybe it because I compiled the latest swig version from source?
http://www.swig.org/download.html

@kba
Copy link
Collaborator

kba commented Oct 28, 2016

@morusu I think this has been fixed. Please try again with current master and up-to-date Eigen (>= 3.3-rc1) and SWIG (>= 3.0) and open a new issue if it still fails.

@kba kba closed this as completed Oct 28, 2016
@tmbdev
Copy link
Owner

tmbdev commented Oct 28, 2016

We should probably add version checks for swig and Eigen to run-tests

@kba
Copy link
Collaborator

kba commented Oct 28, 2016

Or to scons.

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

4 participants