magma_cgesv w/ multiple GPU box

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

magma_cgesv w/ multiple GPU box

Postby mh1 » Thu Mar 14, 2013 4:42 pm

I have successfully download and integrated Magma 1.3. I am currently using magma_cgesv in one part of my application.

I have a machine with multiple GPU's. Will magma_cgesv automatically utilizes both of those GPU's? If not, how do I tell it which one to use (cudaSetDevice)?

Thank You
mh1
 
Posts: 17
Joined: Thu Mar 14, 2013 4:24 pm

Re: magma_cgesv w/ multiple GPU box

Postby mgates3 » Fri Mar 15, 2013 3:48 pm

You need to set the environment variable MAGMA_NUM_GPUS to the number that you want to use. E.g.:

setenv MAGMA_NUM_GPUS 2
./testing_cgesv

-mark
mgates3
 
Posts: 509
Joined: Fri Jan 06, 2012 2:13 pm

Re: magma_cgesv w/ multiple GPU box

Postby mh1 » Tue May 26, 2015 5:08 pm

Well, I could have multiple (and different) GPUs on a single box. For example I have a machine in my development environment with the following cards : K20, K20x, K40. How do I make MAGMA use only the K40? Or how would I make it use the K20 and K40? I need the ability to turn on/off a card for MAGMA usage.
mh1
 
Posts: 17
Joined: Thu Mar 14, 2013 4:24 pm

Re: magma_cgesv w/ multiple GPU box

Postby mgates3 » Wed May 27, 2015 1:23 pm

That's a bit cumbersome at the moment. The best I can offer is using CUDA_VISIBLE_DEVICES.

http://devblogs.nvidia.com/parallelfora ... e_devices/
http://acceleware.com/blog/cudavisibled ... sking-gpus

Hopefully this will improve in the future as we introduce better queue (stream) support into MAGMA.

-mark
mgates3
 
Posts: 509
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron