free trial won't compile .cuf

Hi,

I downloaded and installed the os x trial version of the pgi compilers. When I go to compile the the matmul.CUF example file however, I get the following errors


PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 8)
PGF90-S-0034-Syntax error at or near :: (matmul.CUF: 9)
PGF90-S-0034-Syntax error at or near :: (matmul.CUF: 15)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 23)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 24)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 28)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 29)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 31)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 35)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 40)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 41)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 45)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 50)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 51)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 52)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 57)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 59)
PGF90-S-0310-Illegal statement in the specification part of a MODULE (matmul.CUF: 63)
PGF90-S-0302-Unmatched ENDSUBROUTINE statement (matmul.CUF: 65)


Is there something else I need to install before the compilers work? Do I need to include a flag to indicate that it’s a cuda fortran file?

Thanks

Hi,

If you install both packages; PGI Workstation and PGI Accelerator, that should be fine.

Which version of PGI did you work on? It’s 32-bit version right?

The command I use is: pgf90 -Mcuda matmul.CUF.


Hongyon

Hi,

I had it setup to use the 64-bit compiler by default. I’ve changed this now to use the 32-bit compiler and it seems to be working now.

Thanks for your help.