13.07.2015 Views

KernelGen - GPU Technology Conference

KernelGen - GPU Technology Conference

KernelGen - GPU Technology Conference

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

OpenACC: no external calls.OpenACC compilers do not allow calls from different compilation units:sincos.f90!$acc paralleldo k = 1, nzdo j = 1, nydo i = 1, nxxy(i, j, k) = sincos_ijk(x(i, j, k), y(i, j, k))enddoenddoenddo!$acc end parallelfunction sincos_ijk(x, y)function.f90implicit nonereal, intent(in) :: x, yreal :: sincos_ijksincos_ijk = sin(x) + cos(y)end function sincos_ijkpgfortran -fast -Mnomain -Minfo=accel -ta=nvidia,time -Mcuda=keepgpu,keepbin,keepptx,←↪ptxinfo -c ../sincos.f90 -o sincos.oPGF90-W-0155-Accelerator region ignored; see -Minfo messages (../sincos.f90: 33)sincos:33, Accelerator region ignored36, .Accelerator restriction: function/procedure calls are not supported37, Accelerator restriction: unsupported call to sincos_ijk8 / 75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!