Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
GPU and Neural Network ... is this operation legitimate?
Replies:
3
Last Post:
Nov 20, 2012 6:12 AM



condor
Posts:
32
Registered:
3/2/10


Re: GPU and Neural Network ... is this operation legitimate?
Posted:
Nov 20, 2012 6:12 AM


I wrote this:
net.trainParam.showWindow = false; net.trainParam.showCommandLine = false;
net_1=net; net_2=net;
%GPU tic parfor ii=1500:1800 input_A=nndata2gpu(input(:,(ii1500+1):15001)); target_A=nndata2gpu(target(:,(ii1500+1):15001)); net_1=train(net,input_A,target_A); end toc %CPU tic parfor iii=1500:1800 net_2=train(net,input(:,(iii1500+1):iii1),target(:,(iii1500+1):iii1)); end toc
RESULTS: GPU=Elapsed time is 63.126368 seconds. CPU=Elapsed time is 8.482704 seconds.
I assume that the loop is not running on the GPU right?



