PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

compiler can't generate code for cc11

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
Senya



Joined: 20 Jun 2011
Posts: 58

PostPosted: Sun Aug 26, 2012 5:39 am    Post subject: compiler can't generate code for cc11 Reply with quote

Compiling fails with error
Quote:
> make
pgf95 -g -O0 -Mcuda=cc11 -ta=nvidia:cc11 -tp=amd64 -Minfo -DCUDA -module ../module -c fldpki_acc.for
fldpku:
61, CUDA kernel generated
61, !$cuf kernel do <<< (*), (32) >>>
PGF90-S-0155-No valid compute capability generated (fldpki_acc.for)
0 inform, 0 warnings, 1 severes, 0 fatal for X.sqrt
make: *** [fldpki_acc.o] Ошибка 2

when trying to build source
Code:
      Subroutine FLDPKU(F,H,NN,MM)
      use pkidat
      real, device :: H(2,KK1SO2,KK2), F(2,KK1SO2,KK2)
!$cuf kernel do(1) <<< *, 8>>>
      DO 220 J=1,MM
      H(1,1,J)=(P1F(J,1)) *F(1,1,J)     
 220  CONTINUE
      END


For default compute capabilities, code builds normally.
All values are real, so single-precision.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Mon Aug 27, 2012 9:10 am    Post subject: Reply with quote

Hi Senya,

Is the "P1F" array declared in a separate module? Using device data found in an external module requires a device with compute capability 2.0 or above. CC1.x devices lack support that allow for runtime checks that we use to perform the runtime device data look-up.

- Mat
Back to top
View user's profile
Senya



Joined: 20 Jun 2011
Posts: 58

PostPosted: Mon Aug 27, 2012 10:52 am    Post subject: Reply with quote

Thanks for answer.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group