Supporting multiple GPU_TARGET in one application

Open discussion for MAGMA

Supporting multiple GPU_TARGET in one application

Postby mh1 » Mon Apr 01, 2013 4:58 pm

Hello,

How would I link both FERMI and KEPLER versions of the MAGMA libraries (libmagma.a and libmagmablas.a) into my application? In essence, I would like for my application to use FERMI based MAGMA unless KEPLER resources are available, but I do not want to make 2 separate application builds.
mh1
 
Posts: 11
Joined: Thu Mar 14, 2013 4:24 pm

Re: Supporting multiple GPU_TARGET in one application

Postby mgates3 » Tue Apr 02, 2013 12:12 pm

I think the best for you currently is:
1) In make.inc, set GPU_TARGET = Kepler
2) In Makefile.internal, add cuda 2.0 to the NVOPTS:

NVOPTS += -DGPUSHMEM=300 \
-gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35

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


Return to User discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron