From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 40B0D385DC2E; Wed, 26 Aug 2020 11:32:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40B0D385DC2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598441555; bh=swhM19Lg/ByeZVbna373vakeqyx/Wv3TFuiyvQuk0e0=; h=From:To:Subject:Date:From; b=S0zz8rIBQfn042ByxbKfkN+PNDi4iwLSJwPH0MxxcZxoRap8HnqWQ/+tWHq9YzaQu h6gK03KVfEHhi+f3PNWPTV1W867p3yyu0oIVDsDV+rl7kwXUcn9evAokeJbakxeRI9 I1bxJj/YFAeAeLftxkc+1bpU5w3Qxj4Yid3luog4= From: "samunaga at amd dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96797] New: OpenACC fortran acc_get_cuda_stream Date: Wed, 26 Aug 2020 11:32:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: samunaga at amd dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 11:32:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96797 Bug ID: 96797 Summary: OpenACC fortran acc_get_cuda_stream Product: gcc Version: 10.1.0 Status: UNCONFIRMED Keywords: openacc Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: samunaga at amd dot com Target Milestone: --- Created attachment 49130 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49130&action=3Dedit source_code.txt contains source code for all the 3 files When compiling OpenACC fortran code fft.f90 which calls a function defined = in cufft.cu file, we are getting the below error Error: Function 'acc_get_cuda_stream' at (1) has no IMPLICIT type Steps to reproduce the error: nvcc -c --compiler-bindir /usr/bin/ cufft.cu (using GCC7.5.0 for NVCC) gfortran -fopenacc -o fftf fft.f90 cufft.o -lm -lcufft -L/usr/local/cuda-10.2/targets/x86_64-linux/lib/ -lcudart CUDA version: 10.2 GCC version: 10.1 When compiling the equivalent C code(fftc.c), the executable got build with= out any errors. Steps for compilation: nvcc -c --compiler-bindir /usr/bin/ cufft.cu (using GCC7.5.0 for NVCC) gcc -fopenacc -o fftc fftc.c cufft.o -lcufft -lcudart -L/usr/local/cuda-10.2/targets/x86_64-linux/lib Please find attached source code for cufft.cu,fft.f90,fftc.c We observed that, acc_get_cuda_stream is declared in openacc.h file(C implementaion uses this) But acc_get_cuda_stream is not declared in openacc.f90 file(fortran implementation uses openacc.mod)=