cublas part 2

OpenACC and CUDA Fortran
Post Reply
ErinH
Posts: 31
Joined: Aug 22 2018

cublas part 2

Post by ErinH » Tue Aug 27, 2019 10:39 pm

Here is the Makefile

Code: Select all

FC= pgf90
F77= pgf90 
CC = pgcc
BLAS_LIBS = c:/"Program Files"/"NVIDIA GPU Computing Toolkit"/CUDA/v10.1/lib/x64/nvblas.lib
FFLAGS= -Ld:/"Program Files"/PGI/win64/19.4/bin/pgf90.dll -Ld:/"Program Files"/PGI/win64/19.4/bin/pgc.dll 
FLIBS= -Ld:/"Program Files"/PGI/win64/19.4/bin/pgf90.dll -Ld:/"Program Files"/PGI/win64/19.4/bin/pgc.dll 
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

SHLIB_FFLAGS= -Mmakedll 
CUDA_FFLAGS=-acc -Minfo=accel -Mlarge_arrays -Ld:/"Program Files"/PGI/win64/19.4/bin/pgf90.dll -Ld:/"Program Files"/PGI/win64/19.4/bin/pgc.dll 
DLLCUDA_FFLAGS=-ta=tesla:nordc   -Ld:/"Program Files"/PGI/win64/19.4/lib/acc_init_link_cuda.obj    -Ld:/"Program Files"/PGI/win64/19.4/lib/libaccapi.lib   -Ld:/"Program Files"/PGI/win64/19.4/lib/libaccg.lib   -Ld:/"Program Files"/PGI/win64/19.4/lib/libaccn.lib   -Ld:/"Program Files"/PGI/win64/19.4/lib/libaccg2.lib   -Ld:/"Program Files"/PGI/win64/19.4/lib/libcudadevice.lib   -Ld:/"Program Files"/PGI/win64/19.4/lib/pgc.lib   -Ld:/"Program Files"/PGI/win64/19.4/lib/libnspgc.lib  -defaultlib:legacy_stdio_definitions -defaultlib:oldnames -Ld:/"Program Files"/PGI/win64/19.4/bin/pgf90.dll -Ld:/"Program Files"/PGI/win64/19.4/bin/pgc.dll -LD:/"Program Files"/PGI/win64/2019/cuda/10.1/bin/cublas64_10.dll


ErinH
Posts: 31
Joined: Aug 22 2018

Re: cublas part 2

Post by ErinH » Mon Sep 02, 2019 1:13 pm

Woo hoo!

I got it to work.

Would anyone like to see the solution, please?

Thanks!
Erin

mkcolg
Posts: 8299
Joined: Jun 30 2004

Re: cublas part 2

Post by mkcolg » Tue Sep 03, 2019 7:51 am

While I think you're one of the few that are calling OpenACC/CUDA Fortran from R, I think it would be useful since similar issues may occur with calling from Python or MatLab. Can you please describe what was wrong?

Thanks,
Mat

Post Reply