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

Segmentation fault(core dumped)? Could you give a example for how to use the source code? #13

Closed
pranerd opened this issue Apr 10, 2017 · 9 comments
Assignees
Labels

Comments

@pranerd
Copy link

pranerd commented Apr 10, 2017

I use the git clone the source code and under the gpu-svm directory make the code. Then I download the iris data from libsvm site, put it under the directory dataset/. Then according to the run.sh, use the command ./run.sh iris. Then it raise a error ./run.sh line 86 # segmentation fault (core dumped) I hope there is a tutorial for how to using the source code.

@zeyiwen zeyiwen self-assigned this Apr 11, 2017
@zeyiwen zeyiwen added the bug label Apr 11, 2017
@zeyiwen
Copy link
Collaborator

zeyiwen commented Apr 11, 2017

The problem is fixed. Please try "./run.sh iris" again. Thanks!

@zeyiwen zeyiwen closed this as completed Apr 11, 2017
@pranerd
Copy link
Author

pranerd commented Apr 11, 2017

I'm sorry, I git clone the code again and make it. then run it gain, it still has the problem.
it displays + ./bin/release/mascot -b 0 -o 0 -g 0.5 -c 100 -r 1 -e dataset/iris.scale.t dataset/iris.scale, then it raise error ./run.sh: line 86: 9415 Segmentation fault (core dumped)

@zeyiwen
Copy link
Collaborator

zeyiwen commented Apr 11, 2017

You may try other dataset, such as a1a. If you still get the same problem, I think it's the version issue.

What is the version of cuda and nvidia driver on your machine?

@pranerd
Copy link
Author

pranerd commented Apr 11, 2017

I try the dataset of a1a, it still has the problem. I typed the command nvcc -V, the version of cuda in my linux server is Cuda compilation tools, release 7.5, V7.5.17.

@zeyiwen zeyiwen reopened this Apr 12, 2017
@zeyiwen
Copy link
Collaborator

zeyiwen commented Apr 12, 2017

We've tested our code on about 10 machines including servers and desktops, but couldn't reproduce the Segmentation fault issue. Please make sure: 1. other GPU programs can run on your machine (I've some concern about your GPU driver); 2. you have our latest code, and make fresh executable file.

Moreover, you may try "make debug" and then run "./bin/debug/mascot -b 0 -o 0 -g 0.5 -c 100 -r 1 dataset/iris.scale"; and see if debug mode works.

@zeyiwen zeyiwen closed this as completed Apr 13, 2017
@pranerd
Copy link
Author

pranerd commented Apr 18, 2017

I follow your advices, try "make debug" and then run the script, the debug mode works.

@zeyiwen
Copy link
Collaborator

zeyiwen commented Apr 18, 2017

Sounds good. Please note that debug mode is much slower than release mode.

I'd appreciate if you could find out a way for us to reproduce your problem, or if you could help us resolve it.

@pranerd
Copy link
Author

pranerd commented Apr 18, 2017

I found that if the cuda version is release 8.0, V8.0.44, the ./run.sh is OK.

@zeyiwen
Copy link
Collaborator

zeyiwen commented Apr 18, 2017

Thank you for letting us know!

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

No branches or pull requests

2 participants