Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enables LibDNN as the default convolution engine in Greentea benchmarks.
Note that LibDNN is available for both CUDA and OpenCL, and I also enabled this as default in the Makefile.
It is important to select the correct GPU: I have set GPU 1 as OpenCL and GPU 0 as CUDA in the benchmark scripts, but if the system has more than one CUDA GPU, then the GPU ID for OpenCL has to be changed to #CUDA GPUs + 1 (i.e. 2 if 2 CUDA GPUs are present).
@soumith
Could you do me a favor and benchmark this in CUDA and OpenCL? Would help a lot in the further development of the convolution engine.
It is not yet autotuned for the Titan X but should give a hint on performance anyways. If the OpenCL score greatly differs from the CUDA score, this is most likely due to the slow ViennaCL operations used for weight updates and auxiliary math operations. CLBlast and clBLAS would do better, but compiling them takes more time.
Thanks :)