-
Notifications
You must be signed in to change notification settings - Fork 2
/
openacc_cublas.f90
4252 lines (3849 loc) · 163 KB
/
openacc_cublas.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
!! Fortran CUDA Library interface -- CUBLAS Device for OpenACC
!!
!! Copyright (C) 2018 Mentor, A Siemens Business
!!
!! This software is provided 'as-is', without any express or implied
!! warranty. In no event will the authors be held liable for any damages
!! arising from the use of this software.
!!
!! Permission is granted to anyone to use this software for any purpose,
!! including commercial applications, and to alter it and redistribute it
!! freely, subject to the following restrictions:
!!
!! 1. The origin of this software must not be misrepresented; you must not
!! claim that you wrote the original software. If you use this software
!! in a product, an acknowledgment in the product documentation would be
!! appreciated but is not required.
!! 2. Altered source versions must be plainly marked as such, and must not be
!! misrepresented as being the original software.
!! 3. This notice may not be removed or altered from any source distribution.
module openacc_cublas
use iso_c_binding
type, bind(c) :: cuBlasHandle
type(c_ptr) :: handle
end type cuBlasHandle
enum, bind(c)
enumerator :: CUBLAS_STATUS_SUCCESS = 0
enumerator :: CUBLAS_STATUS_NOT_INITIALIZED = 1
enumerator :: CUBLAS_STATUS_ALLOC_FAILED = 3
enumerator :: CUBLAS_STATUS_INVALID_VALUE = 7
enumerator :: CUBLAS_STATUS_ARCH_MISMATCH = 8
enumerator :: CUBLAS_STATUS_MAPPING_ERROR = 11
enumerator :: CUBLAS_STATUS_EXECUTION_FAILED = 13
enumerator :: CUBLAS_STATUS_INTERNAL_ERROR = 14
enumerator :: CUBLAS_STATUS_NOT_SUPPORTED = 15
enumerator :: CUBLAS_STATUS_LICENSE_ERROR = 16
end enum
enum, bind(c)
enumerator :: CUBLAS_FILL_MODE_LOWER = 0
enumerator :: CUBLAS_FILL_MODE_UPPER = 1
end enum
enum, bind(c)
enumerator :: CUBLAS_DIAG_NON_UNIT = 0
enumerator :: CUBLAS_DIAG_UNIT = 1
end enum
enum, bind(c)
enumerator :: CUBLAS_SIDE_LEFT = 0
enumerator :: CUBLAS_SIDE_RIGHT = 1
end enum
enum, bind(c)
enumerator :: CUBLAS_OP_N = 0
enumerator :: CUBLAS_OP_T = 1
enumerator :: CUBLAS_OP_C = 2
end enum
enum, bind(c)
enumerator :: CUBLAS_POINTER_MODE_HOST = 0
enumerator :: CUBLAS_POINTER_MODE_DEVICE = 1
end enum
interface
integer(c_int) function cublasCreate (handle) &
bind (c, name="cublasCreate_v2")
import
type(cublasHandle) :: handle
!$acc routine seq
end function cublasCreate
integer(c_int) function cublasDestroy (handle) &
bind (c, name="cublasDestroy_v2")
import
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDestroy
integer(c_int) function cublasGetVersion (handle, version) &
bind (c, name="cublasGetVersion_v2")
import
type(cublasHandle), value :: handle
integer(c_int) :: version
!$acc routine seq
end function cublasGetVersion
integer(c_int) function cublasSetStream (handle, streamId) &
bind (c, name="cublasSetStream_v2")
import
type(c_ptr), value :: streamId
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasSetStream
integer(c_int) function cublasGetStream (handle, streamId) &
bind (c, name="cublasGetStream_v2")
import
type(cublasHandle), value :: handle
type(c_ptr) :: streamId
!$acc routine seq
end function cublasGetStream
integer(c_int) function cublasSrotm_v2 (handle, n, x, incx, y, incy, param) &
bind (c, name="cublasSrotm_v2")
import
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y, param
!$acc routine seq
end function cublasSrotm_v2
integer(c_int) function cublasSrotm (handle, n, x, incx, y, incy, param) &
bind (c, name="cublasSrotm_v2")
import
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y, param
!$acc routine seq
end function cublasSrotm
integer(c_int) function cublasDrotm_v2 (handle, n, x, incx, y, incy, param) &
bind (c, name="cublasDrotm_v2")
import
real(c_double), dimension(*) :: x, y, param
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDrotm_v2
integer(c_int) function cublasDrotm (handle, n, x, incx, y, incy, param) &
bind (c, name="cublasDrotm_v2")
import
real(c_double), dimension(*) :: x, y, param
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDrotm
integer(c_int) function cublasSrotmg_v2 (handle, d1, d2, x1, y1, param) &
bind (c, name="cublasSrotmg_v2")
import
real(c_float) :: d1, d2, x1, y1
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: param
!$acc routine seq
end function cublasSrotmg_v2
integer(c_int) function cublasSrotmg (handle, d1, d2, x1, y1, param) &
bind (c, name="cublasSrotmg_v2")
import
real(c_float) :: d1, d2, x1, y1
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: param
!$acc routine seq
end function cublasSrotmg
integer(c_int) function cublasDrotmg_v2 (handle, d1, d2, x1, y1, param) &
bind (c, name="cublasDrotmg_v2")
import
real(c_double), dimension(*) :: param
real(c_double) :: d1, d2, x1, y1
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDrotmg_v2
integer(c_int) function cublasDrotmg (handle, d1, d2, x1, y1, param) &
bind (c, name="cublasDrotmg_v2")
import
real(c_double), dimension(*) :: param
real(c_double) :: d1, d2, x1, y1
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDrotmg
integer(c_int) function cublasSsbmv_v2 (handle, uplo, n, k, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSsbmv_v2")
import
integer(c_int), value :: uplo, n, k, lda, incx, incy
real(c_float) :: alpha, beta
real(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
real(c_float), dimension(lda, *) :: A
!$acc routine seq
end function cublasSsbmv_v2
integer(c_int) function cublasSsbmv (handle, uplo, n, k, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSsbmv_v2")
import
integer(c_int), value :: uplo, n, k, lda, incx, incy
real(c_float) :: alpha, beta
real(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
real(c_float), dimension(lda, *) :: A
!$acc routine seq
end function cublasSsbmv
integer(c_int) function cublasDsbmv_v2 (handle, uplo, n, k, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDsbmv_v2")
import
integer(c_int), value :: uplo, n, k, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double) :: alpha, beta
type(cublasHandle), value :: handle
real(c_double), dimension(*) :: x, y
!$acc routine seq
end function cublasDsbmv_v2
integer(c_int) function cublasDsbmv (handle, uplo, n, k, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDsbmv_v2")
import
integer(c_int), value :: uplo, n, k, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double) :: alpha, beta
type(cublasHandle), value :: handle
real(c_double), dimension(*) :: x, y
!$acc routine seq
end function cublasDsbmv
integer(c_int) function cublasSspmv_v2 (handle, uplo, n, alpha, AP, x, incx, beta, y, incy) &
bind (c, name="cublasSspmv_v2")
import
real(c_float) :: alpha, beta
integer(c_int), value :: uplo, n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: AP, x, y
!$acc routine seq
end function cublasSspmv_v2
integer(c_int) function cublasSspmv (handle, uplo, n, alpha, AP, x, incx, beta, y, incy) &
bind (c, name="cublasSspmv_v2")
import
real(c_float) :: alpha, beta
integer(c_int), value :: uplo, n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: AP, x, y
!$acc routine seq
end function cublasSspmv
integer(c_int) function cublasDspmv_v2 (handle, uplo, n, alpha, AP, x, incx, beta, y, incy) &
bind (c, name="cublasDspmv_v2")
import
real(c_double), dimension(*) :: AP, x, y
integer(c_int), value :: uplo, n, incx, incy
real(c_double) :: alpha, beta
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDspmv_v2
integer(c_int) function cublasDspmv (handle, uplo, n, alpha, AP, x, incx, beta, y, incy) &
bind (c, name="cublasDspmv_v2")
import
real(c_double), dimension(*) :: AP, x, y
integer(c_int), value :: uplo, n, incx, incy
real(c_double) :: alpha, beta
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDspmv
integer(c_int) function cublasSspr_v2 (handle, uplo, n, alpha, x, incx, AP) &
bind (c, name="cublasSspr_v2")
import
real(c_float) :: alpha
integer(c_int), value :: uplo, n, incx
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, AP
!$acc routine seq
end function cublasSspr_v2
integer(c_int) function cublasSspr (handle, uplo, n, alpha, x, incx, AP) &
bind (c, name="cublasSspr_v2")
import
real(c_float) :: alpha
integer(c_int), value :: uplo, n, incx
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, AP
!$acc routine seq
end function cublasSspr
integer(c_int) function cublasDspr_v2 (handle, uplo, n, alpha, x, incx, AP) &
bind (c, name="cublasDspr_v2")
import
real(c_double), dimension(*) :: x, AP
integer(c_int), value :: uplo, n, incx
real(c_double) :: alpha
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDspr_v2
integer(c_int) function cublasDspr (handle, uplo, n, alpha, x, incx, AP) &
bind (c, name="cublasDspr_v2")
import
real(c_double), dimension(*) :: x, AP
integer(c_int), value :: uplo, n, incx
real(c_double) :: alpha
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDspr
integer(c_int) function cublasSspr2_v2 (handle, uplo, n, alpha, x, incx, y, incy, AP) &
bind (c, name="cublasSspr2_v2")
import
real(c_float) :: alpha
integer(c_int), value :: uplo, n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y, AP
!$acc routine seq
end function cublasSspr2_v2
integer(c_int) function cublasSspr2 (handle, uplo, n, alpha, x, incx, y, incy, AP) &
bind (c, name="cublasSspr2_v2")
import
real(c_float) :: alpha
integer(c_int), value :: uplo, n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y, AP
!$acc routine seq
end function cublasSspr2
integer(c_int) function cublasDspr2_v2 (handle, uplo, n, alpha, x, incx, y, incy, AP) &
bind (c, name="cublasDspr2_v2")
import
real(c_double), dimension(*) :: x, y, AP
integer(c_int), value :: uplo, n, incx, incy
real(c_double) :: alpha
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDspr2_v2
integer(c_int) function cublasDspr2 (handle, uplo, n, alpha, x, incx, y, incy, AP) &
bind (c, name="cublasDspr2_v2")
import
real(c_double), dimension(*) :: x, y, AP
integer(c_int), value :: uplo, n, incx, incy
real(c_double) :: alpha
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDspr2
integer(c_int) function cublasIsamax_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasIsamax_v2")
import
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
real(c_float), dimension(*) :: x
!$acc routine seq
end function cublasIsamax_v2
integer(c_int) function cublasIsamax (handle, n, x, incx, ret_result) &
bind (c, name="cublasIsamax_v2")
import
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
real(c_float), dimension(*) :: x
!$acc routine seq
end function cublasIsamax
integer(c_int) function cublasIdamax_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasIdamax_v2")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIdamax_v2
integer(c_int) function cublasIdamax (handle, n, x, incx, ret_result) &
bind (c, name="cublasIdamax_v2")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIdamax
integer(c_int) function cublasIcamax_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasIcamax_v2")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIcamax_v2
integer(c_int) function cublasIcamax (handle, n, x, incx, ret_result) &
bind (c, name="cublasIcamax_v2")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIcamax
integer(c_int) function cublasIzamax_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasIzamax_v2")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIzamax_v2
integer(c_int) function cublasIzamax (handle, n, x, incx, ret_result) &
bind (c, name="cublasIzamax_v2")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIzamax
integer(c_int) function cublasIsamin_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasIsamin_v2")
import
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
real(c_float), dimension(*) :: x
!$acc routine seq
end function cublasIsamin_v2
integer(c_int) function cublasIsamin (handle, n, x, incx, ret_result) &
bind (c, name="cublasIsamin_v2")
import
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
real(c_float), dimension(*) :: x
!$acc routine seq
end function cublasIsamin
integer(c_int) function cublasIdamin_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasIdamin_v2")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIdamin_v2
integer(c_int) function cublasIdamin (handle, n, x, incx, ret_result) &
bind (c, name="cublasIdamin_v2")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIdamin
integer(c_int) function cublasIcamin_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasIcamin_v2")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIcamin_v2
integer(c_int) function cublasIcamin (handle, n, x, incx, ret_result) &
bind (c, name="cublasIcamin_v2")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIcamin
integer(c_int) function cublasIzamin_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasIzamin_v2")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIzamin_v2
integer(c_int) function cublasIzamin (handle, n, x, incx, ret_result) &
bind (c, name="cublasIzamin_v2")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
type(cublasHandle), value :: handle
integer(c_int) :: ret_result
!$acc routine seq
end function cublasIzamin
integer(c_int) function cublasSasum_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasSasum_v2")
import
real(c_float) :: ret_result
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x
!$acc routine seq
end function cublasSasum_v2
integer(c_int) function cublasSasum (handle, n, x, incx, ret_result) &
bind (c, name="cublasSasum_v2")
import
real(c_float) :: ret_result
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x
!$acc routine seq
end function cublasSasum
integer(c_int) function cublasDasum_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasDasum_v2")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
real(c_double) :: ret_result
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDasum_v2
integer(c_int) function cublasDasum (handle, n, x, incx, ret_result) &
bind (c, name="cublasDasum_v2")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
real(c_double) :: ret_result
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDasum
integer(c_int) function cublasScasum_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasScasum_v2")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
complex(c_float) :: ret_result
!$acc routine seq
end function cublasScasum_v2
integer(c_int) function cublasScasum (handle, n, x, incx, ret_result) &
bind (c, name="cublasScasum_v2")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
type(cublasHandle), value :: handle
complex(c_float) :: ret_result
!$acc routine seq
end function cublasScasum
integer(c_int) function cublasDzasum_v2 (handle, n, x, incx, ret_result) &
bind (c, name="cublasDzasum_v2")
import
integer(c_int), value :: n, incx
complex(c_double) :: ret_result
complex(c_double), dimension(*) :: x
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDzasum_v2
integer(c_int) function cublasDzasum (handle, n, x, incx, ret_result) &
bind (c, name="cublasDzasum_v2")
import
integer(c_int), value :: n, incx
complex(c_double) :: ret_result
complex(c_double), dimension(*) :: x
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDzasum
integer(c_int) function cublasSgbmv_v2 &
(handle, trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSgbmv_v2")
import
integer(c_int), value :: trans, m, n, kl, ku, lda, incx, incy
real(c_float) :: alpha, beta
real(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
real(c_float), dimension(lda, *) :: A
!$acc routine seq
end function cublasSgbmv_v2
integer(c_int) function cublasSgbmv &
(handle, trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSgbmv_v2")
import
integer(c_int), value :: trans, m, n, kl, ku, lda, incx, incy
real(c_float) :: alpha, beta
real(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
real(c_float), dimension(lda, *) :: A
!$acc routine seq
end function cublasSgbmv
integer(c_int) function cublasDgbmv_v2 &
(handle, trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDgbmv_v2")
import
integer(c_int), value :: trans, m, n, kl, ku, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double) :: alpha, beta
type(cublasHandle), value :: handle
real(c_double), dimension(*) :: x, y
!$acc routine seq
end function cublasDgbmv_v2
integer(c_int) function cublasDgbmv &
(handle, trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDgbmv_v2")
import
integer(c_int), value :: trans, m, n, kl, ku, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double) :: alpha, beta
type(cublasHandle), value :: handle
real(c_double), dimension(*) :: x, y
!$acc routine seq
end function cublasDgbmv
integer(c_int) function cublasCgbmv_v2 &
(handle, trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasCgbmv_v2")
import
integer(c_int), value :: trans, m, n, kl, ku, lda, incx, incy
complex(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
complex(c_float), dimension(lda, *) :: A
complex(c_float) :: alpha, beta
!$acc routine seq
end function cublasCgbmv_v2
integer(c_int) function cublasCgbmv &
(handle, trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasCgbmv_v2")
import
integer(c_int), value :: trans, m, n, kl, ku, lda, incx, incy
complex(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
complex(c_float), dimension(lda, *) :: A
complex(c_float) :: alpha, beta
!$acc routine seq
end function cublasCgbmv
integer(c_int) function cublasZgbmv_v2 &
(handle, trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasZgbmv_v2")
import
integer(c_int), value :: trans, m, n, kl, ku, lda, incx, incy
complex(c_double), dimension(*) :: x, y
complex(c_double) :: alpha, beta
complex(c_double), dimension(lda, *) :: A
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZgbmv_v2
integer(c_int) function cublasZgbmv &
(handle, trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasZgbmv_v2")
import
integer(c_int), value :: trans, m, n, kl, ku, lda, incx, incy
complex(c_double), dimension(*) :: x, y
complex(c_double) :: alpha, beta
complex(c_double), dimension(lda, *) :: A
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZgbmv
integer(c_int) function cublasSgemv_v2 &
(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSgemv_v2")
import
integer(c_int), value :: trans, m, n, lda, incx, incy
real(c_float) :: alpha, beta
real(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
real(c_float), dimension(lda, *) :: A
!$acc routine seq
end function cublasSgemv_v2
integer(c_int) function cublasSgemv &
(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSgemv_v2")
import
integer(c_int), value :: trans, m, n, lda, incx, incy
real(c_float) :: alpha, beta
real(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
real(c_float), dimension(lda, *) :: A
!$acc routine seq
end function cublasSgemv
integer(c_int) function cublasDgemv_v2 &
(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDgemv_v2")
import
integer(c_int), value :: trans, m, n, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double) :: alpha, beta
type(cublasHandle), value :: handle
real(c_double), dimension(*) :: x, y
!$acc routine seq
end function cublasDgemv_v2
integer(c_int) function cublasDgemv &
(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDgemv_v2")
import
integer(c_int), value :: trans, m, n, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double) :: alpha, beta
type(cublasHandle), value :: handle
real(c_double), dimension(*) :: x, y
!$acc routine seq
end function cublasDgemv
integer(c_int) function cublasCgemv_v2 &
(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasCgemv_v2")
import
integer(c_int), value :: trans, m, n, lda, incx, incy
complex(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
complex(c_float), dimension(lda, *) :: A
complex(c_float) :: alpha, beta
!$acc routine seq
end function cublasCgemv_v2
integer(c_int) function cublasCgemv &
(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasCgemv_v2")
import
integer(c_int), value :: trans, m, n, lda, incx, incy
complex(c_float), dimension(*) :: x, y
type(cublasHandle), value :: handle
complex(c_float), dimension(lda, *) :: A
complex(c_float) :: alpha, beta
!$acc routine seq
end function cublasCgemv
integer(c_int) function cublasZgemv_v2 &
(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasZgemv_v2")
import
integer(c_int), value :: trans, m, n, lda, incx, incy
complex(c_double), dimension(*) :: x, y
complex(c_double) :: alpha, beta
complex(c_double), dimension(lda, *) :: A
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZgemv_v2
integer(c_int) function cublasZgemv &
(handle, trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasZgemv_v2")
import
integer(c_int), value :: trans, m, n, lda, incx, incy
complex(c_double), dimension(*) :: x, y
complex(c_double) :: alpha, beta
complex(c_double), dimension(lda, *) :: A
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZgemv
integer(c_int) function cublasSaxpy_v2 (handle, n, alpha, x, incx, y, incy) &
bind (c, name="cublasSaxpy_v2")
import
real(c_float) :: alpha
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y
!$acc routine seq
end function cublasSaxpy_v2
integer(c_int) function cublasSaxpy (handle, n, alpha, x, incx, y, incy) &
bind (c, name="cublasSaxpy_v2")
import
real(c_float) :: alpha
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y
!$acc routine seq
end function cublasSaxpy
integer(c_int) function cublasDaxpy_v2 (handle, n, alpha, x, incx, y, incy) &
bind (c, name="cublasDaxpy_v2")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
real(c_double) :: alpha
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDaxpy_v2
integer(c_int) function cublasDaxpy (handle, n, alpha, x, incx, y, incy) &
bind (c, name="cublasDaxpy_v2")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
real(c_double) :: alpha
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDaxpy
integer(c_int) function cublasCaxpy_v2 (handle, n, alpha, x, incx, y, incy) &
bind (c, name="cublasCaxpy_v2")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
complex(c_float) :: alpha
!$acc routine seq
end function cublasCaxpy_v2
integer(c_int) function cublasCaxpy (handle, n, alpha, x, incx, y, incy) &
bind (c, name="cublasCaxpy_v2")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
complex(c_float) :: alpha
!$acc routine seq
end function cublasCaxpy
integer(c_int) function cublasZaxpy_v2 (handle, n, alpha, x, incx, y, incy) &
bind (c, name="cublasZaxpy_v2")
import
integer(c_int), value :: n, incx, incy
complex(c_double) :: alpha
complex(c_double), dimension(*) :: x, y
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZaxpy_v2
integer(c_int) function cublasZaxpy (handle, n, alpha, x, incx, y, incy) &
bind (c, name="cublasZaxpy_v2")
import
integer(c_int), value :: n, incx, incy
complex(c_double) :: alpha
complex(c_double), dimension(*) :: x, y
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZaxpy
integer(c_int) function cublasScopy_v2 (handle, n, x, incx, y, incy) &
bind (c, name="cublasScopy_v2")
import
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y
!$acc routine seq
end function cublasScopy_v2
integer(c_int) function cublasScopy (handle, n, x, incx, y, incy) &
bind (c, name="cublasScopy_v2")
import
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y
!$acc routine seq
end function cublasScopy
integer(c_int) function cublasDcopy_v2 (handle, n, x, incx, y, incy) &
bind (c, name="cublasDcopy_v2")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDcopy_v2
integer(c_int) function cublasDcopy (handle, n, x, incx, y, incy) &
bind (c, name="cublasDcopy_v2")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDcopy
integer(c_int) function cublasCcopy_v2 (handle, n, x, incx, y, incy) &
bind (c, name="cublasCcopy_v2")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasCcopy_v2
integer(c_int) function cublasCcopy (handle, n, x, incx, y, incy) &
bind (c, name="cublasCcopy_v2")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasCcopy
integer(c_int) function cublasZcopy_v2 (handle, n, x, incx, y, incy) &
bind (c, name="cublasZcopy_v2")
import
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: x, y
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZcopy_v2
integer(c_int) function cublasZcopy (handle, n, x, incx, y, incy) &
bind (c, name="cublasZcopy_v2")
import
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: x, y
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZcopy
integer(c_int) function cublasSdot_v2 (handle, n, x, incx, y, incy, ret_result) &
bind (c, name="cublasSdot_v2")
import
real(c_float) :: ret_result
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y
!$acc routine seq
end function cublasSdot_v2
integer(c_int) function cublasSdot (handle, n, x, incx, y, incy, ret_result) &
bind (c, name="cublasSdot_v2")
import
real(c_float) :: ret_result
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
real(c_float), dimension(*) :: x, y
!$acc routine seq
end function cublasSdot
integer(c_int) function cublasDdot_v2 (handle, n, x, incx, y, incy, ret_result) &
bind (c, name="cublasDdot_v2")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
real(c_double) :: ret_result
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDdot_v2
integer(c_int) function cublasDdot (handle, n, x, incx, y, incy, ret_result) &
bind (c, name="cublasDdot_v2")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
real(c_double) :: ret_result
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasDdot
integer(c_int) function cublasCdotc_v2 (handle, n, x, incx, y, incy, ret_result) &
bind (c, name="cublasCdotc_v2")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
complex(c_float) :: ret_result
!$acc routine seq
end function cublasCdotc_v2
integer(c_int) function cublasCdotc (handle, n, x, incx, y, incy, ret_result) &
bind (c, name="cublasCdotc_v2")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
type(cublasHandle), value :: handle
complex(c_float) :: ret_result
!$acc routine seq
end function cublasCdotc
integer(c_int) function cublasZdotc_v2 (handle, n, x, incx, y, incy, ret_result) &
bind (c, name="cublasZdotc_v2")
import
integer(c_int), value :: n, incx, incy
complex(c_double) :: ret_result
complex(c_double), dimension(*) :: x, y
type(cublasHandle), value :: handle
!$acc routine seq
end function cublasZdotc_v2
integer(c_int) function cublasZdotc (handle, n, x, incx, y, incy, ret_result) &
bind (c, name="cublasZdotc_v2")
import
integer(c_int), value :: n, incx, incy