Gamestudio Links
Zorro Links
Newest Posts
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
folder management functions
by 7th_zorro. 04/15/24 10:10
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
SGT_FW
by Aku_Aku. 04/10/24 16:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, Quad), 373 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Setting GPU when training on Zorro #477909
08/13/19 15:38
08/13/19 15:38
Joined: Apr 2019
Posts: 48
Albay
M
marr Offline OP
Newbie
marr  Offline OP
Newbie
M

Joined: Apr 2019
Posts: 48
Albay
Hi guys i have a deep learning script in R which GPU is enabled when training, it took only few minutes to complete the whole dataset to train. When i run it with Zorro it seems to use the CPU since it takes hours to finish up training. Is there any way to switch to GPU when training on Zorro?

Re: Setting GPU when training on Zorro [Re: marr] #477915
08/13/19 20:40
08/13/19 20:40
Joined: Feb 2017
Posts: 1,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
Chicago
Zorro supports GPU training via R.

Your setup needs to be correct. Either you failed to get your GPU to work, or you created a bottleneck. But it is impossible to identify the culprit with what little context you have provided.

Re: Setting GPU when training on Zorro [Re: marr] #477919
08/14/19 05:24
08/14/19 05:24
Joined: Apr 2019
Posts: 48
Albay
M
marr Offline OP
Newbie
marr  Offline OP
Newbie
M

Joined: Apr 2019
Posts: 48
Albay
i am using conda env on my R to load the tensorflow gpu, and my the script is similar to zorro example. my gpu is 1051ti 4gb, cpu is i3-4170 3.7GHz
cpu bottle neck is possible culprit, my goal is to make zorro training run as fast as i run on R console using gpu

the code that i use to load conda env

Code
use_condaenv("r-dl", required=T)

Last edited by marr; 08/14/19 05:24.
Re: Setting GPU when training on Zorro [Re: marr] #477920
08/14/19 11:40
08/14/19 11:40
Joined: Feb 2017
Posts: 1,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
Chicago
I haven't used Tensorflow directly (I've used Keras->Tensorflow), but I believe there is a way to verify which processing unit you are using. Confirm your processing unit, both via R and then via Zorro->R.

Re: Setting GPU when training on Zorro [Re: marr] #477921
08/14/19 12:11
08/14/19 12:11
Joined: Apr 2019
Posts: 48
Albay
M
marr Offline OP
Newbie
marr  Offline OP
Newbie
M

Joined: Apr 2019
Posts: 48
Albay
I mean I am using Keras with Tensorflow GPU and able to confirm that on R terminal, I don't know how to verify from Zorro->R

Re: Setting GPU when training on Zorro [Re: marr] #477922
08/14/19 12:52
08/14/19 12:52
Joined: Feb 2017
Posts: 1,724
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,724
Chicago
How about the same way you did in the R terminal?

Re: Setting GPU when training on Zorro [Re: marr] #477929
08/15/19 06:18
08/15/19 06:18
Joined: Apr 2019
Posts: 48
Albay
M
marr Offline OP
Newbie
marr  Offline OP
Newbie
M

Joined: Apr 2019
Posts: 48
Albay
the way i did in R terminal is when I run the neura.test() it has a info message the it detects the gpu and using it and fast when training. but the process is slow when i click Train on zorro panel and theres no message that it use gpu, only shows cpu the number of cpu cores in use


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1