Weird linker message in 19.4 when using CUDA Fortran Windows 10

Questions on using the PGI Compilers and Tools
ErinH
Posts: 25
Joined: Aug 22 2018

Weird linker message in 19.4 when using CUDA Fortran Windows 10

Post by ErinH » Sun Jul 28, 2019 10:46 am

Hi there!

I'm getting a weird linker message as seen below:

pgf95 -Mcuda=cuda10.1,cc60 t1.cuf
./t1.exf: warning: unknown section "_RDATA" found, executable not
stripped. Use the linker's /merge option to merge this section
with another. Example: "/merge:_RDATA=.data"

D:\>

Here is the actual source code:

module mytests
contains
attributes (global) subroutine test1(a)
integer, device :: a(*)
i = threadIdx%x
a(i) = 2*i
return
end subroutine test1
end module mytests

program t1
use cudafor
use mytests
integer, parameter :: n = 100
integer, allocatable, device :: iarr(:)
integer h(n)
istat = cudaSetDevice(0)
allocate(iarr(n))
h = 0; iarr = h
call test1<<<1,n>>> (iarr)
h = iarr
print *, "Errors ", count(h.ne.(/ (i,i=1,n) /)),h
deallocate(iarr)
end program t1

I have used this program before without any problems. By the way, the program runs fine. But I don't want to be missing something.

Thanks,
Erin

aglobus
Posts: 137
Joined: Jun 11 2018

Re: Weird linker message in 19.4 when using CUDA Fortran Windows 10

Post by aglobus » Fri Aug 02, 2019 4:03 pm

The linking message comes from building with the VS19 toolchain instead of VS17. I'm guessing that VS19 is installed on the system, right? Officially, we support VS17 but VS19 partially works. One of the kinks of using VS19 with PGI is that it will emit that warning message with the linker with any object file you try to link with.

It's pretty harmless and not a reflection of anything wrong in your code. I believe it should be fixed in 19.7 and it will make its way into the next CE with 19.10.

ErinH
Posts: 25
Joined: Aug 22 2018

Re: Weird linker message in 19.4 when using CUDA Fortran Windows 10

Post by ErinH » Mon Aug 12, 2019 8:33 am

Thank you!

Tarweed
Posts: 2
Joined: Sep 10 2019

Re: Weird linker message in 19.4 when using CUDA Fortran Windows 10

Post by Tarweed » Tue Sep 10, 2019 11:14 pm

I got the same weird message. I just ignored it and nothing bad happened. I don't like things like this much even if harmless.

Tarweed
Posts: 2
Joined: Sep 10 2019

Why does PGI$ get indented sometimes??

Post by Tarweed » Sun Sep 15, 2019 12:06 am

After I do something like "cat abc.f" the PGI$ prompt gets indented. Why? Using a Windows PC.
Thanks for any comments. Just for my interest, no real harm.

Post Reply