Skip to content

Do the speed test on the new gpu back-end. #180

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

Merged
merged 1 commit into from
Jan 14, 2017
Merged

Conversation

nouiz
Copy link
Member

@nouiz nouiz commented Jan 13, 2017

We need to wait for Theano/Theano#5407 to be merged before mering this PR.

I locally ran the test and it work well:

$ nosetests test.py:speed
.../anaconda/lib/python2.7/site-packages/skcuda/cublas.py:273: UserWarning: creating CUBLAS context to get version number
  warnings.warn('creating CUBLAS context to get version number')
Using cuDNN version 5103 on context None
Mapped name None to device cuda: GeForce GTX 750 (0000:05:00.0)
The code for file logistic_sgd.pyc ran for 3.2s
The code for file logistic_cg.pyc ran for 3.8s
The code for file mlp.pyc ran for 0.18m
.../repos/DeepLearningTutorials/code/convolutional_mlp.py:104: UserWarning: DEPRECATION: the 'ds' parameter is not going to exist anymore as it is going to be replaced by the parameter 'ws'.
  ignore_border=True
The code for file convolutional_mlp.pyc ran for 0.10m
The no corruption code for file dA.pyc ran for 0.05m
The 30% corruption code for file dA.pyc ran for 0.05m
The pretraining code for file SdA.pyc ran for 0.04m
The training code for file SdA.pyc ran for 0.04m
WARNING (theano.configdefaults): install mkl with `conda install mkl-service`: No module named mkl
The pretraining code for file DBN.pyc ran for 0.06m
The fine tuning code for file DBN.pyc ran for 0.04m
WARNING (theano.gof.cmodule): A module that was loaded by this ModuleCache can no longer be read from file .../theano.NOBACKUP/compiledir_Linux-3.16--amd64-x86_64-with-debian-8.6--2.7.12-64/tmpRiLZVT/23b1fd8f41b26be52c0c77ff92d2c364.so... this could lead to problems.
Training took 3.4s
['logistic_sgd', 'logistic_cg', 'mlp', 'convolutional_mlp', 'dA', 'SdA', 'DBN', 'rbm', 'rnnrbm', 'rnnslu', 'lstm']
gpu times [  2.73707032   3.7258532   10.73662472   5.73185563   6.36838317
   4.94786191   5.85787058   4.26474953  22.4863615   10.84645605
   5.23835015]
.
----------------------------------------------------------------------
Ran 1 test in 510.563s

OK

@nouiz
Copy link
Member Author

nouiz commented Jan 13, 2017

I forgot, when I ran the tests, I just made the GPU tests ran and skip the CPU test.

@nouiz nouiz merged commit fe3dc30 into lisa-lab:master Jan 14, 2017
@nouiz nouiz deleted the master2 branch January 14, 2017 02:58
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

Successfully merging this pull request may close these issues.

1 participant