Running time
zxzhijia opened this issue · 13 comments
How long it takes for running that 60 minutes tutorial example? My CPU is intel i7 3.4 Hz 3.4 Hz. GPU is NVIDIA GeForce GTX 750 Ti.
it takes a few seconds to a minute ish. shouldn't take longer than that.
it's really strange. It's been running an hour on my PC. I don't know why.
I guess I get almost exactly the same problem as tohnperfect got before. He had a long discussion with you. But I don't know how to solve it.
seems slightly different. You asked him how long it takes for commend: itorch; torch.randn(10). He said forever. But mine is very fast. But only "trainer:train(trainset)" takes forever. What's the output of that commend?
It works fine now when I run it on GPU. Thanks.
hi Xu, I really suspect now that your CPU torch was not installed with good BLAS support. I suggest checking your output of your torch install and seeing if it links against a blas library.
Sorry, I'm beginner. how to check that?
On Wednesday, April 13, 2016, Soumith Chintala notifications@github.com
wrote:
hi Xu, I really suspect now that your CPU torch was not installed with
good BLAS support. I suggest checking your output of your torch install and
seeing if it links against a blas library.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#11 (comment)
Should I install OpenBLAS?
On Wednesday, April 13, 2016, Xu Zhang xz70@duke.edu wrote:
Sorry, I'm beginner. how to check that?
On Wednesday, April 13, 2016, Soumith Chintala <notifications@github.com
javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:hi Xu, I really suspect now that your CPU torch was not installed with
good BLAS support. I suggest checking your output of your torch install and
seeing if it links against a blas library.—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#11 (comment)
I installed OpenBLAS by your comments in another link.
git clone https://github.com/xianyi/OpenBLAS.git
cd OpenBLAS
make NO_AFFINITY=1 USE_OPENMP=1
sudo make install
But it still doesn't work for CPU. Is anything that may help? Thanks.
okay good, now that you installed openblas, reinstall just the torch package like this:
export CMAKE_LIBRARY_PATH=/opt/OpenBLAS/include:/opt/OpenBLAS/lib:$CMAKE_LIBRARY_PATH
luarocks install torch
After that, see if things get faster :)
xu@xu-ThinkCentre-M72e:/$ export CMAKE_LIBRARY_PATH=/opt/OpenBLAS/include:/opt/
xu@xu-ThinkCentre-M72e:/$ OpenBLAS/lib:$CMAKE_LIBRARY_PATH
bash: OpenBLAS/lib:/opt/OpenBLAS/include:/opt/: No such file or directory
sorry. I type the wrong commend. I'll try again. Thanks.
Wow. Amazing. Problem solved. Thanks a lot.