-
Notifications
You must be signed in to change notification settings - Fork 2
/
cublas.f90
1390 lines (1232 loc) · 49.1 KB
/
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 (Legacy) module
!!
!! Copyright (C) 2017-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 cublas
use iso_c_binding
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
interface
integer(c_int) function cublasInit () &
bind (c, name="cublasInit")
import
end function cublasInit
integer(c_int) function cublasShutdown () &
bind (c, name="cublasShutdown")
import
end function cublasShutdown
integer(c_int) function cublasGetError () &
bind (c, name="cublasGetError")
import
end function cublasGetError
integer(c_int) function cublasGetVersion (version) &
bind (c, name="cublasGetVersion")
import
integer(c_int) :: version
end function cublasGetVersion
integer(c_int) function cublasSetKernelStream (stream) &
bind (c, name="cublasSetKernelStream")
import
type(c_ptr), value :: stream
end function cublasSetKernelStream
real(c_float) function cublasSnrm2 (n, x, incx) &
bind (c, name="cublasSnrm2")
import
integer(c_int), value :: n, incx
real(c_float), dimension(*) :: x
end function cublasSnrm2
real(c_double) function cublasDnrm2 (n, x, incx) &
bind (c, name="cublasDnrm2")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
end function cublasDnrm2
real(c_float) function cublasScnrm2 (n, x, incx) &
bind (c, name="cublasScnrm2")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
end function cublasScnrm2
real(c_double) function cublasDznrm2 (n, x, incx) &
bind (c, name="cublasDznrm2")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
end function cublasDznrm2
real(c_float) function cublasSdot (n, x, incx, y, incy) &
bind (c, name="cublasSdot")
import
integer(c_int), value :: n, incx, incy
real(c_float), dimension(*) :: x, y
end function cublasSdot
real(c_double) function cublasDdot (n, x, incx, y, incy) &
bind (c, name="cublasDdot")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
end function cublasDdot
complex(c_float) function cublasCdotu (n, x, incx, y, incy) &
bind (c, name="cublasCdotu")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
end function cublasCdotu
complex(c_double) function cublasZdotu (n, x, incx, y, incy) &
bind (c, name="cublasZdotu")
import
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: x, y
end function cublasZdotu
complex(c_float) function cublasCdotc (n, x, incx, y, incy) &
bind (c, name="cublasCdotc")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
end function cublasCdotc
complex(c_double) function cublasZdotc (n, x, incx, y, incy) &
bind (c, name="cublasZdotc")
import
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: x, y
end function cublasZdotc
subroutine cublasSscal (n, alpha, x, incx) &
bind (c, name="cublasSscal")
import
integer(c_int), value :: n, incx
real(c_float), value :: alpha
real(c_float), dimension(*) :: x
end subroutine cublasSscal
subroutine cublasDscal (n, alpha, x, incx) &
bind (c, name="cublasDscal")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
real(c_double), value :: alpha
end subroutine cublasDscal
subroutine cublasCscal (n, alpha, x, incx) &
bind (c, name="cublasCscal")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
complex(c_float), value :: alpha
end subroutine cublasCscal
subroutine cublasZscal (n, alpha, x, incx) &
bind (c, name="cublasZscal")
import
complex(c_double), value :: alpha
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
end subroutine cublasZscal
subroutine cublasCsscal (n, alpha, x, incx) &
bind (c, name="cublasCsscal")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
real(c_float), value :: alpha
end subroutine cublasCsscal
subroutine cublasZdscal (n, alpha, x, incx) &
bind (c, name="cublasZdscal")
import
integer(c_int), value :: n, incx
real(c_double), value :: alpha
complex(c_double), dimension(*) :: x
end subroutine cublasZdscal
subroutine cublasSaxpy (n, alpha, x, incx, y, incy) &
bind (c, name="cublasSaxpy")
import
integer(c_int), value :: n, incx, incy
real(c_float), value :: alpha
real(c_float), dimension(*) :: x, y
end subroutine cublasSaxpy
subroutine cublasDaxpy (n, alpha, x, incx, y, incy) &
bind (c, name="cublasDaxpy")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
real(c_double), value :: alpha
end subroutine cublasDaxpy
subroutine cublasCaxpy (n, alpha, x, incx, y, incy) &
bind (c, name="cublasCaxpy")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
complex(c_float), value :: alpha
end subroutine cublasCaxpy
subroutine cublasZaxpy (n, alpha, x, incx, y, incy) &
bind (c, name="cublasZaxpy")
import
complex(c_double), value :: alpha
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: x, y
end subroutine cublasZaxpy
subroutine cublasScopy (n, x, incx, y, incy) &
bind (c, name="cublasScopy")
import
integer(c_int), value :: n, incx, incy
real(c_float), dimension(*) :: x, y
end subroutine cublasScopy
subroutine cublasDcopy (n, x, incx, y, incy) &
bind (c, name="cublasDcopy")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
end subroutine cublasDcopy
subroutine cublasCcopy (n, x, incx, y, incy) &
bind (c, name="cublasCcopy")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
end subroutine cublasCcopy
subroutine cublasZcopy (n, x, incx, y, incy) &
bind (c, name="cublasZcopy")
import
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: x, y
end subroutine cublasZcopy
subroutine cublasSswap (n, x, incx, y, incy) &
bind (c, name="cublasSswap")
import
integer(c_int), value :: n, incx, incy
real(c_float), dimension(*) :: x, y
end subroutine cublasSswap
subroutine cublasDswap (n, x, incx, y, incy) &
bind (c, name="cublasDswap")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
end subroutine cublasDswap
subroutine cublasCswap (n, x, incx, y, incy) &
bind (c, name="cublasCswap")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
end subroutine cublasCswap
subroutine cublasZswap (n, x, incx, y, incy) &
bind (c, name="cublasZswap")
import
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: x, y
end subroutine cublasZswap
integer(c_int) function cublasIsamax (n, x, incx) &
bind (c, name="cublasIsamax")
import
integer(c_int), value :: n, incx
real(c_float), dimension(*) :: x
end function cublasIsamax
integer(c_int) function cublasIdamax (n, x, incx) &
bind (c, name="cublasIdamax")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
end function cublasIdamax
integer(c_int) function cublasIcamax (n, x, incx) &
bind (c, name="cublasIcamax")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
end function cublasIcamax
integer(c_int) function cublasIzamax (n, x, incx) &
bind (c, name="cublasIzamax")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
end function cublasIzamax
integer(c_int) function cublasIsamin (n, x, incx) &
bind (c, name="cublasIsamin")
import
integer(c_int), value :: n, incx
real(c_float), dimension(*) :: x
end function cublasIsamin
integer(c_int) function cublasIdamin (n, x, incx) &
bind (c, name="cublasIdamin")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
end function cublasIdamin
integer(c_int) function cublasIcamin (n, x, incx) &
bind (c, name="cublasIcamin")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
end function cublasIcamin
integer(c_int) function cublasIzamin (n, x, incx) &
bind (c, name="cublasIzamin")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
end function cublasIzamin
real(c_float) function cublasSasum (n, x, incx) &
bind (c, name="cublasSasum")
import
integer(c_int), value :: n, incx
real(c_float), dimension(*) :: x
end function cublasSasum
real(c_double) function cublasDasum (n, x, incx) &
bind (c, name="cublasDasum")
import
real(c_double), dimension(*) :: x
integer(c_int), value :: n, incx
end function cublasDasum
real(c_float) function cublasScasum (n, x, incx) &
bind (c, name="cublasScasum")
import
complex(c_float), dimension(*) :: x
integer(c_int), value :: n, incx
end function cublasScasum
real(c_double) function cublasDzasum (n, x, incx) &
bind (c, name="cublasDzasum")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x
end function cublasDzasum
subroutine cublasSrot (n, x, incx, y, incy, sc, ss) &
bind (c, name="cublasSrot")
import
integer(c_int), value :: n, incx, incy
real(c_float), value :: sc, ss
real(c_float), dimension(*) :: x, y
end subroutine cublasSrot
subroutine cublasDrot (n, x, incx, y, incy, sc, ss) &
bind (c, name="cublasDrot")
import
real(c_double), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
real(c_double), value :: sc, ss
end subroutine cublasDrot
subroutine cublasCrot (n, x, incx, y, incy, sc, ss) &
bind (c, name="cublasCrot")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
complex(c_float), value :: sc, ss
end subroutine cublasCrot
subroutine cublasZrot (n, x, incx, y, incy, sc, ss) &
bind (c, name="cublasZrot")
import
complex(c_double), value :: sc, ss
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: x, y
end subroutine cublasZrot
subroutine cublasCsrot (n, x, incx, y, incy, c, s) &
bind (c, name="cublasCsrot")
import
complex(c_float), dimension(*) :: x, y
integer(c_int), value :: n, incx, incy
real(c_float), value :: c, s
end subroutine cublasCsrot
subroutine cublasZdrot (n, x, incx, y, incy, c, s) &
bind (c, name="cublasZdrot")
import
integer(c_int), value :: n, incx, incy
real(c_double), value :: c, s
complex(c_double), dimension(*) :: x, y
end subroutine cublasZdrot
subroutine cublasSrotg (sa, sb, sc, ss) &
bind (c, name="cublasSrotg")
import
real(c_float) :: sa, sb, sc, ss
end subroutine cublasSrotg
subroutine cublasDrotg (sa, sb, sc, ss) &
bind (c, name="cublasDrotg")
import
real(c_double) :: sa, sb, sc, ss
end subroutine cublasDrotg
subroutine cublasCrotg (sa, sb, sc, ss) &
bind (c, name="cublasCrotg")
import
complex(c_float) :: sa, sb, sc, ss
end subroutine cublasCrotg
subroutine cublasZrotg (sa, sb, sc, ss) &
bind (c, name="cublasZrotg")
import
complex(c_double) :: sa, sb, sc, ss
end subroutine cublasZrotg
subroutine cublasSrotm (n, x, incx, y, incy, param) &
bind (c, name="cublasSrotm")
import
integer(c_int), value :: n, incx, incy
real(c_float), dimension(*) :: x, y, param
end subroutine cublasSrotm
subroutine cublasDrotm (n, x, incx, y, incy, param) &
bind (c, name="cublasDrotm")
import
real(c_double), dimension(*) :: x, y, param
integer(c_int), value :: n, incx, incy
end subroutine cublasDrotm
subroutine cublasSrotmg (d1, d2, x1, y1, param) &
bind (c, name="cublasSrotmg")
import
real(c_float) :: d1, d2, x1, y1
real(c_float), dimension(*) :: param
end subroutine cublasSrotmg
subroutine cublasDrotmg (d1, d2, x1, y1, param) &
bind (c, name="cublasDrotmg")
import
real(c_double), dimension(*) :: param
real(c_double) :: d1, d2, x1, y1
end subroutine cublasDrotmg
subroutine cublasSgemv (trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSgemv")
import
integer(c_int), value :: m, n, lda, incx, incy
real(c_float), dimension(*) :: x, y
real(c_float), value :: alpha, beta
character(c_char), value :: trans
real(c_float), dimension(lda, *) :: A
end subroutine cublasSgemv
subroutine cublasDgemv (trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDgemv")
import
integer(c_int), value :: m, n, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double), value :: alpha, beta
character(c_char), value :: trans
real(c_double), dimension(*) :: x, y
end subroutine cublasDgemv
subroutine cublasCgemv (trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasCgemv")
import
integer(c_int), value :: m, n, lda, incx, incy
complex(c_float), dimension(*) :: x, y
character(c_char), value :: trans
complex(c_float), dimension(lda, *) :: A
complex(c_float), value :: alpha, beta
end subroutine cublasCgemv
subroutine cublasZgemv (trans, m, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasZgemv")
import
integer(c_int), value :: m, n, lda, incx, incy
complex(c_double), dimension(*) :: x, y
complex(c_double), value :: alpha, beta
complex(c_double), dimension(lda, *) :: A
character(c_char), value :: trans
end subroutine cublasZgemv
subroutine cublasSgbmv &
(trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSgbmv")
import
integer(c_int), value :: m, n, kl, ku, lda, incx, incy
real(c_float), dimension(*) :: x, y
real(c_float), value :: alpha, beta
character(c_char), value :: trans
real(c_float), dimension(lda, *) :: A
end subroutine cublasSgbmv
subroutine cublasDgbmv &
(trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDgbmv")
import
integer(c_int), value :: m, n, kl, ku, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double), value :: alpha, beta
character(c_char), value :: trans
real(c_double), dimension(*) :: x, y
end subroutine cublasDgbmv
subroutine cublasCgbmv &
(trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasCgbmv")
import
integer(c_int), value :: m, n, kl, ku, lda, incx, incy
complex(c_float), dimension(*) :: x, y
character(c_char), value :: trans
complex(c_float), dimension(lda, *) :: A
complex(c_float), value :: alpha, beta
end subroutine cublasCgbmv
subroutine cublasZgbmv &
(trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasZgbmv")
import
integer(c_int), value :: m, n, kl, ku, lda, incx, incy
complex(c_double), dimension(*) :: x, y
complex(c_double), value :: alpha, beta
complex(c_double), dimension(lda, *) :: A
character(c_char), value :: trans
end subroutine cublasZgbmv
subroutine cublasStrmv (uplo, trans, diag, n, A, lda, x, incx) &
bind (c, name="cublasStrmv")
import
integer(c_int), value :: n, lda, incx
real(c_float), dimension(*) :: x
character(c_char), value :: uplo, trans, diag
real(c_float), dimension(lda, *) :: A
end subroutine cublasStrmv
subroutine cublasDtrmv (uplo, trans, diag, n, A, lda, x, incx) &
bind (c, name="cublasDtrmv")
import
integer(c_int), value :: n, lda, incx
real(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo, trans, diag
real(c_double), dimension(*) :: x
end subroutine cublasDtrmv
subroutine cublasCtrmv (uplo, trans, diag, n, A, lda, x, incx) &
bind (c, name="cublasCtrmv")
import
integer(c_int), value :: n, lda, incx
complex(c_float), dimension(*) :: x
character(c_char), value :: uplo, trans, diag
complex(c_float), dimension(lda, *) :: A
end subroutine cublasCtrmv
subroutine cublasZtrmv (uplo, trans, diag, n, A, lda, x, incx) &
bind (c, name="cublasZtrmv")
import
integer(c_int), value :: n, lda, incx
complex(c_double), dimension(*) :: x
complex(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo, trans, diag
end subroutine cublasZtrmv
subroutine cublasStbmv (uplo, trans, diag, n, k, A, lda, x, incx) &
bind (c, name="cublasStbmv")
import
integer(c_int), value :: n, k, lda, incx
real(c_float), dimension(*) :: x
character(c_char), value :: uplo, trans, diag
real(c_float), dimension(lda, *) :: A
end subroutine cublasStbmv
subroutine cublasDtbmv (uplo, trans, diag, n, k, A, lda, x, incx) &
bind (c, name="cublasDtbmv")
import
integer(c_int), value :: n, k, lda, incx
real(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo, trans, diag
real(c_double), dimension(*) :: x
end subroutine cublasDtbmv
subroutine cublasCtbmv (uplo, trans, diag, n, k, A, lda, x, incx) &
bind (c, name="cublasCtbmv")
import
integer(c_int), value :: n, k, lda, incx
complex(c_float), dimension(*) :: x
character(c_char), value :: uplo, trans, diag
complex(c_float), dimension(lda, *) :: A
end subroutine cublasCtbmv
subroutine cublasZtbmv (uplo, trans, diag, n, k, A, lda, x, incx) &
bind (c, name="cublasZtbmv")
import
integer(c_int), value :: n, k, lda, incx
complex(c_double), dimension(*) :: x
complex(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo, trans, diag
end subroutine cublasZtbmv
subroutine cublasStpmv (uplo, trans, diag, n, AP, x, incx) &
bind (c, name="cublasStpmv")
import
integer(c_int), value :: n, incx
character(c_char), value :: uplo, trans, diag
real(c_float), dimension(*) :: AP, x
end subroutine cublasStpmv
subroutine cublasDtpmv (uplo, trans, diag, n, AP, x, incx) &
bind (c, name="cublasDtpmv")
import
real(c_double), dimension(*) :: AP, x
integer(c_int), value :: n, incx
character(c_char), value :: uplo, trans, diag
end subroutine cublasDtpmv
subroutine cublasCtpmv (uplo, trans, diag, n, AP, x, incx) &
bind (c, name="cublasCtpmv")
import
complex(c_float), dimension(*) :: AP, x
integer(c_int), value :: n, incx
character(c_char), value :: uplo, trans, diag
end subroutine cublasCtpmv
subroutine cublasZtpmv (uplo, trans, diag, n, AP, x, incx) &
bind (c, name="cublasZtpmv")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: AP, x
character(c_char), value :: uplo, trans, diag
end subroutine cublasZtpmv
subroutine cublasStrsv (uplo, trans, diag, n, A, lda, x, incx) &
bind (c, name="cublasStrsv")
import
integer(c_int), value :: n, lda, incx
real(c_float), dimension(*) :: x
character(c_char), value :: uplo, trans, diag
real(c_float), dimension(lda, *) :: A
end subroutine cublasStrsv
subroutine cublasDtrsv (uplo, trans, diag, n, A, lda, x, incx) &
bind (c, name="cublasDtrsv")
import
integer(c_int), value :: n, lda, incx
real(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo, trans, diag
real(c_double), dimension(*) :: x
end subroutine cublasDtrsv
subroutine cublasCtrsv (uplo, trans, diag, n, A, lda, x, incx) &
bind (c, name="cublasCtrsv")
import
integer(c_int), value :: n, lda, incx
complex(c_float), dimension(*) :: x
character(c_char), value :: uplo, trans, diag
complex(c_float), dimension(lda, *) :: A
end subroutine cublasCtrsv
subroutine cublasZtrsv (uplo, trans, diag, n, A, lda, x, incx) &
bind (c, name="cublasZtrsv")
import
integer(c_int), value :: n, lda, incx
complex(c_double), dimension(*) :: x
complex(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo, trans, diag
end subroutine cublasZtrsv
subroutine cublasStpsv (uplo, trans, diag, n, AP, x, incx) &
bind (c, name="cublasStpsv")
import
integer(c_int), value :: n, incx
character(c_char), value :: uplo, trans, diag
real(c_float), dimension(*) :: AP, x
end subroutine cublasStpsv
subroutine cublasDtpsv (uplo, trans, diag, n, AP, x, incx) &
bind (c, name="cublasDtpsv")
import
real(c_double), dimension(*) :: AP, x
integer(c_int), value :: n, incx
character(c_char), value :: uplo, trans, diag
end subroutine cublasDtpsv
subroutine cublasCtpsv (uplo, trans, diag, n, AP, x, incx) &
bind (c, name="cublasCtpsv")
import
complex(c_float), dimension(*) :: AP, x
integer(c_int), value :: n, incx
character(c_char), value :: uplo, trans, diag
end subroutine cublasCtpsv
subroutine cublasZtpsv (uplo, trans, diag, n, AP, x, incx) &
bind (c, name="cublasZtpsv")
import
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: AP, x
character(c_char), value :: uplo, trans, diag
end subroutine cublasZtpsv
subroutine cublasStbsv (uplo, trans, diag, n, k, A, lda, x, incx) &
bind (c, name="cublasStbsv")
import
integer(c_int), value :: n, k, lda, incx
real(c_float), dimension(*) :: x
character(c_char), value :: uplo, trans, diag
real(c_float), dimension(lda, *) :: A
end subroutine cublasStbsv
subroutine cublasDtbsv (uplo, trans, diag, n, k, A, lda, x, incx) &
bind (c, name="cublasDtbsv")
import
integer(c_int), value :: n, k, lda, incx
real(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo, trans, diag
real(c_double), dimension(*) :: x
end subroutine cublasDtbsv
subroutine cublasCtbsv (uplo, trans, diag, n, k, A, lda, x, incx) &
bind (c, name="cublasCtbsv")
import
integer(c_int), value :: n, k, lda, incx
complex(c_float), dimension(*) :: x
character(c_char), value :: uplo, trans, diag
complex(c_float), dimension(lda, *) :: A
end subroutine cublasCtbsv
subroutine cublasZtbsv (uplo, trans, diag, n, k, A, lda, x, incx) &
bind (c, name="cublasZtbsv")
import
integer(c_int), value :: n, k, lda, incx
complex(c_double), dimension(*) :: x
complex(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo, trans, diag
end subroutine cublasZtbsv
subroutine cublasSsymv (uplo, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSsymv")
import
integer(c_int), value :: n, lda, incx, incy
real(c_float), dimension(*) :: x, y
real(c_float), value :: alpha, beta
character(c_char), value :: uplo
real(c_float), dimension(lda, *) :: A
end subroutine cublasSsymv
subroutine cublasDsymv (uplo, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDsymv")
import
integer(c_int), value :: n, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double), value :: alpha, beta
character(c_char), value :: uplo
real(c_double), dimension(*) :: x, y
end subroutine cublasDsymv
subroutine cublasChemv (uplo, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasChemv")
import
integer(c_int), value :: n, lda, incx, incy
complex(c_float), dimension(*) :: x, y
character(c_char), value :: uplo
complex(c_float), dimension(lda, *) :: A
complex(c_float), value :: alpha, beta
end subroutine cublasChemv
subroutine cublasZhemv (uplo, n, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasZhemv")
import
integer(c_int), value :: n, lda, incx, incy
complex(c_double), dimension(*) :: x, y
complex(c_double), value :: alpha, beta
complex(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo
end subroutine cublasZhemv
subroutine cublasSsbmv (uplo, n, k, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasSsbmv")
import
integer(c_int), value :: n, k, lda, incx, incy
real(c_float), dimension(*) :: x, y
real(c_float), value :: alpha, beta
character(c_char), value :: uplo
real(c_float), dimension(lda, *) :: A
end subroutine cublasSsbmv
subroutine cublasDsbmv (uplo, n, k, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasDsbmv")
import
integer(c_int), value :: n, k, lda, incx, incy
real(c_double), dimension(lda, *) :: A
real(c_double), value :: alpha, beta
character(c_char), value :: uplo
real(c_double), dimension(*) :: x, y
end subroutine cublasDsbmv
subroutine cublasChbmv (uplo, n, k, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasChbmv")
import
integer(c_int), value :: n, k, lda, incx, incy
complex(c_float), dimension(*) :: x, y
character(c_char), value :: uplo
complex(c_float), dimension(lda, *) :: A
complex(c_float), value :: alpha, beta
end subroutine cublasChbmv
subroutine cublasZhbmv (uplo, n, k, alpha, A, lda, x, incx, beta, y, incy) &
bind (c, name="cublasZhbmv")
import
integer(c_int), value :: n, k, lda, incx, incy
complex(c_double), dimension(*) :: x, y
complex(c_double), value :: alpha, beta
complex(c_double), dimension(lda, *) :: A
character(c_char), value :: uplo
end subroutine cublasZhbmv
subroutine cublasSspmv (uplo, n, alpha, AP, x, incx, beta, y, incy) &
bind (c, name="cublasSspmv")
import
integer(c_int), value :: n, incx, incy
real(c_float), value :: alpha, beta
character(c_char), value :: uplo
real(c_float), dimension(*) :: AP, x, y
end subroutine cublasSspmv
subroutine cublasDspmv (uplo, n, alpha, AP, x, incx, beta, y, incy) &
bind (c, name="cublasDspmv")
import
real(c_double), dimension(*) :: AP, x, y
integer(c_int), value :: n, incx, incy
real(c_double), value :: alpha, beta
character(c_char), value :: uplo
end subroutine cublasDspmv
subroutine cublasChpmv (uplo, n, alpha, AP, x, incx, beta, y, incy) &
bind (c, name="cublasChpmv")
import
complex(c_float), dimension(*) :: AP, x, y
integer(c_int), value :: n, incx, incy
character(c_char), value :: uplo
complex(c_float), value :: alpha, beta
end subroutine cublasChpmv
subroutine cublasZhpmv (uplo, n, alpha, AP, x, incx, beta, y, incy) &
bind (c, name="cublasZhpmv")
import
complex(c_double), value :: alpha, beta
integer(c_int), value :: n, incx, incy
complex(c_double), dimension(*) :: AP, x, y
character(c_char), value :: uplo
end subroutine cublasZhpmv
subroutine cublasSger (m, n, alpha, x, incx, y, incy, A, lda) &
bind (c, name="cublasSger")
import
integer(c_int), value :: m, n, incx, incy, lda
real(c_float), value :: alpha
real(c_float), dimension(*) :: x, y
real(c_float), dimension(lda, *) :: A
end subroutine cublasSger
subroutine cublasDger (m, n, alpha, x, incx, y, incy, A, lda) &
bind (c, name="cublasDger")
import
integer(c_int), value :: m, n, incx, incy, lda
real(c_double), dimension(*) :: x, y
real(c_double), value :: alpha
real(c_double), dimension(lda, *) :: A
end subroutine cublasDger
subroutine cublasCgeru (m, n, alpha, x, incx, y, incy, A, lda) &
bind (c, name="cublasCgeru")
import
integer(c_int), value :: m, n, incx, incy, lda
complex(c_float), dimension(*) :: x, y
complex(c_float), dimension(lda, *) :: A
complex(c_float), value :: alpha
end subroutine cublasCgeru
subroutine cublasZgeru (m, n, alpha, x, incx, y, incy, A, lda) &
bind (c, name="cublasZgeru")
import
integer(c_int), value :: m, n, incx, incy, lda
complex(c_double), value :: alpha
complex(c_double), dimension(lda, *) :: A
complex(c_double), dimension(*) :: x, y
end subroutine cublasZgeru
subroutine cublasCgerc (m, n, alpha, x, incx, y, incy, A, lda) &
bind (c, name="cublasCgerc")
import
integer(c_int), value :: m, n, incx, incy, lda
complex(c_float), dimension(*) :: x, y
complex(c_float), dimension(lda, *) :: A
complex(c_float), value :: alpha
end subroutine cublasCgerc
subroutine cublasZgerc (m, n, alpha, x, incx, y, incy, A, lda) &
bind (c, name="cublasZgerc")
import
integer(c_int), value :: m, n, incx, incy, lda
complex(c_double), value :: alpha
complex(c_double), dimension(lda, *) :: A
complex(c_double), dimension(*) :: x, y
end subroutine cublasZgerc
subroutine cublasSsyr (uplo, n, alpha, x, incx, A, lda) &
bind (c, name="cublasSsyr")
import
integer(c_int), value :: n, incx, lda
real(c_float), dimension(lda, *) :: A
real(c_float), value :: alpha
character(c_char), value :: uplo
real(c_float), dimension(*) :: x
end subroutine cublasSsyr
subroutine cublasDsyr (uplo, n, alpha, x, incx, A, lda) &
bind (c, name="cublasDsyr")
import
integer(c_int), value :: n, incx, lda
real(c_double), dimension(*) :: x
real(c_double), value :: alpha
character(c_char), value :: uplo
real(c_double), dimension(lda, *) :: A
end subroutine cublasDsyr
subroutine cublasCher (uplo, n, alpha, x, incx, A, lda) &
bind (c, name="cublasCher")
import
integer(c_int), value :: n, incx, lda
complex(c_float), dimension(*) :: x
character(c_char), value :: uplo
complex(c_float), dimension(lda, *) :: A
complex(c_float), value :: alpha
end subroutine cublasCher
subroutine cublasZher (uplo, n, alpha, x, incx, A, lda) &
bind (c, name="cublasZher")
import
integer(c_int), value :: n, incx, lda
complex(c_double), value :: alpha
complex(c_double), dimension(*) :: x
character(c_char), value :: uplo
complex(c_double), dimension(lda, *) :: A
end subroutine cublasZher
subroutine cublasSspr (uplo, n, alpha, x, incx, AP) &
bind (c, name="cublasSspr")
import
integer(c_int), value :: n, incx
real(c_float), value :: alpha
character(c_char), value :: uplo
real(c_float), dimension(*) :: x, AP
end subroutine cublasSspr
subroutine cublasDspr (uplo, n, alpha, x, incx, AP) &
bind (c, name="cublasDspr")
import
real(c_double), dimension(*) :: x, AP
integer(c_int), value :: n, incx
real(c_double), value :: alpha
character(c_char), value :: uplo
end subroutine cublasDspr
subroutine cublasChpr (uplo, n, alpha, x, incx, AP) &
bind (c, name="cublasChpr")
import
complex(c_float), dimension(*) :: x, AP
integer(c_int), value :: n, incx
character(c_char), value :: uplo
complex(c_float), value :: alpha
end subroutine cublasChpr
subroutine cublasZhpr (uplo, n, alpha, x, incx, AP) &
bind (c, name="cublasZhpr")
import
complex(c_double), value :: alpha
integer(c_int), value :: n, incx
complex(c_double), dimension(*) :: x, AP
character(c_char), value :: uplo
end subroutine cublasZhpr
subroutine cublasSsyr2 (uplo, n, alpha, x, incx, y, incy, A, lda) &
bind (c, name="cublasSsyr2")
import
integer(c_int), value :: n, incx, incy, lda
real(c_float), dimension(lda, *) :: A
real(c_float), value :: alpha
character(c_char), value :: uplo
real(c_float), dimension(*) :: x, y