-
Notifications
You must be signed in to change notification settings - Fork 2
/
cublasxt.f90
619 lines (564 loc) · 24.2 KB
/
cublasxt.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
!! Fortran CUDA Library interface -- CUBLAS XT 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 cublasxt
use iso_c_binding
use cublas_core
type, bind(c) :: cublasXtHandle
type(c_ptr) :: handle
end type cublasXtHandle
! Pinned memory mode
enum, bind(c)
enumerator :: CUBLASXT_PINNING_DISABLED=0
enumerator :: CUBLASXT_PINNING_ENABLED=1
end enum
! cublasXtOpType
enum, bind(c)
enumerator :: CUBLASXT_FLOAT=0
enumerator :: CUBLASXT_DOUBLE=1
enumerator :: CUBLASXT_COMPLEX=2
enumerator :: CUBLASXT_DOUBLECOMPLEX=3
end enum
! cublasXtBlasOp
enum, bind(c)
enumerator :: CUBLASXT_GEMM=0
enumerator :: CUBLASXT_SYRK=1
enumerator :: CUBLASXT_HERK=2
enumerator :: CUBLASXT_SYMM=3
enumerator :: CUBLASXT_HEMM=4
enumerator :: CUBLASXT_TRSM=5
enumerator :: CUBLASXT_SYR2K=6
enumerator :: CUBLASXT_HER2K=7
enumerator :: CUBLASXT_SPMM=8
enumerator :: CUBLASXT_SYRKX=9
enumerator :: CUBLASXT_HERKX=10
enumerator :: CUBLASXT_TRMM=11
enumerator :: CUBLASXT_ROUTINE_MAX=12
end enum
interface
integer(c_int) function cublasXtCreate (handle) &
bind (c, name="cublasXtCreate")
import
type(cublasXtHandle) :: handle
end function cublasXtCreate
integer(c_int) function cublasXtDestroy (handle) &
bind (c, name="cublasXtDestroy")
import
type(cublasXtHandle), value :: handle
end function cublasXtDestroy
integer(c_int) function cublasXtDeviceSelect (handle, nbDevices, deviceId) &
bind (c, name="cublasXtDeviceSelect")
import
integer(c_int), dimension(*) :: deviceId
integer(c_int), value :: nbDevices
type(cublasXtHandle), value :: handle
end function cublasXtDeviceSelect
integer(c_int) function cublasXtSetBlockDim (handle, blockDim) &
bind (c, name="cublasXtSetBlockDim")
import
integer(c_int), value :: blockDim
type(cublasXtHandle), value :: handle
end function cublasXtSetBlockDim
integer(c_int) function cublasXtGetBlockDim (handle, blockDim) &
bind (c, name="cublasXtGetBlockDim")
import
type(cublasXtHandle), value :: handle
integer(c_int) :: blockDim
end function cublasXtGetBlockDim
integer(c_int) function cublasXtSetCpuRoutine (handle, blasOp, type, blasFunctor) &
bind (c, name="cublasXtSetCpuRoutine")
import
integer(c_int), value :: blasOp, type, blasFunctor
type(cublasXtHandle), value :: handle
end function cublasXtSetCpuRoutine
integer(c_int) function cublasXtSetCpuRatio (handle, blasOp, type, ratio) &
bind (c, name="cublasXtSetCpuRatio")
import
integer(c_int), value :: blasOp, type
type(cublasXtHandle), value :: handle
real(c_float), value :: ratio
end function cublasXtSetCpuRatio
integer(c_int) function cublasXtSetPinningMemMode (handle, mode) &
bind (c, name="cublasXtSetPinningMemMode")
import
integer(c_int), value :: mode
type(cublasXtHandle), value :: handle
end function cublasXtSetPinningMemMode
integer(c_int) function cublasXtGetPinningMemMode (handle, mode) &
bind (c, name="cublasXtGetPinningMemMode")
import
type(cublasXtHandle), value :: handle
integer(c_int) :: mode
end function cublasXtGetPinningMemMode
integer(c_int) function cublasXtSgemm &
(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtSgemm")
import
integer(c_int), value :: transa, transb, m, n, k, lda, ldb, ldc
real(c_float), dimension(lda, *) :: A
real(c_float) :: alpha, beta
real(c_float), dimension(ldc, *) :: C
real(c_float), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
end function cublasXtSgemm
integer(c_int) function cublasXtDgemm &
(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtDgemm")
import
integer(c_int), value :: transa, transb, m, n, k, lda, ldb, ldc
real(c_double), dimension(ldb, *) :: B
real(c_double), dimension(ldc, *) :: C
real(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
real(c_double) :: alpha, beta
end function cublasXtDgemm
integer(c_int) function cublasXtCgemm &
(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtCgemm")
import
integer(c_int), value :: transa, transb, m, n, k, lda, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha, beta
complex(c_float), dimension(ldb, *) :: B
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtCgemm
integer(c_int) function cublasXtZgemm &
(handle, transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtZgemm")
import
integer(c_int), value :: transa, transb, m, n, k, lda, ldb, ldc
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha, beta
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZgemm
integer(c_int) function cublasXtChemm &
(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtChemm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha, beta
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: side, uplo
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtChemm
integer(c_int) function cublasXtZhemm &
(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtZhemm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
integer(c_int), value :: side, uplo
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha, beta
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZhemm
integer(c_int) function cublasXtSsymm &
(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtSsymm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
real(c_float), dimension(lda, *) :: A
real(c_float) :: alpha, beta
integer(c_int), value :: side, uplo
real(c_float), dimension(ldc, *) :: C
real(c_float), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
end function cublasXtSsymm
integer(c_int) function cublasXtDsymm &
(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtDsymm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
real(c_double), dimension(ldb, *) :: B
integer(c_int), value :: side, uplo
real(c_double), dimension(ldc, *) :: C
real(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
real(c_double) :: alpha, beta
end function cublasXtDsymm
integer(c_int) function cublasXtCsymm &
(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtCsymm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha, beta
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: side, uplo
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtCsymm
integer(c_int) function cublasXtZsymm &
(handle, side, uplo, m, n, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtZsymm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
integer(c_int), value :: side, uplo
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha, beta
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZsymm
integer(c_int) function cublasXtSsyrk (handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc) &
bind (c, name="cublasXtSsyrk")
import
integer(c_int), value :: uplo, trans, n, k, lda, ldc
real(c_float) :: alpha, beta
type(cublasXtHandle), value :: handle
real(c_float), dimension(lda, *) :: A
real(c_float), dimension(ldc, *) :: C
end function cublasXtSsyrk
integer(c_int) function cublasXtDsyrk (handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc) &
bind (c, name="cublasXtDsyrk")
import
integer(c_int), value :: uplo, trans, n, k, lda, ldc
real(c_double), dimension(ldc, *) :: C
real(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
real(c_double) :: alpha, beta
end function cublasXtDsyrk
integer(c_int) function cublasXtCsyrk (handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc) &
bind (c, name="cublasXtCsyrk")
import
integer(c_int), value :: uplo, trans, n, k, lda, ldc
type(cublasXtHandle), value :: handle
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha, beta
complex(c_float), dimension(lda, *) :: A
end function cublasXtCsyrk
integer(c_int) function cublasXtZsyrk (handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc) &
bind (c, name="cublasXtZsyrk")
import
integer(c_int), value :: uplo, trans, n, k, lda, ldc
complex(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
complex(c_double) :: alpha, beta
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZsyrk
integer(c_int) function cublasXtSsyr2k &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtSsyr2k")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
real(c_float), dimension(lda, *) :: A
real(c_float) :: alpha, beta
integer(c_int), value :: uplo, trans
real(c_float), dimension(ldc, *) :: C
real(c_float), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
end function cublasXtSsyr2k
integer(c_int) function cublasXtDsyr2k &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtDsyr2k")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
real(c_double), dimension(ldb, *) :: B
integer(c_int), value :: uplo, trans
real(c_double), dimension(ldc, *) :: C
real(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
real(c_double) :: alpha, beta
end function cublasXtDsyr2k
integer(c_int) function cublasXtCsyr2k &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtCsyr2k")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha, beta
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: uplo, trans
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtCsyr2k
integer(c_int) function cublasXtZsyr2k &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtZsyr2k")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
integer(c_int), value :: uplo, trans
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha, beta
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZsyr2k
integer(c_int) function cublasXtSsyrkx &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtSsyrkx")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
real(c_float), dimension(lda, *) :: A
real(c_float) :: alpha, beta
integer(c_int), value :: uplo, trans
real(c_float), dimension(ldc, *) :: C
real(c_float), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
end function cublasXtSsyrkx
integer(c_int) function cublasXtDsyrkx &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtDsyrkx")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
real(c_double), dimension(ldb, *) :: B
integer(c_int), value :: uplo, trans
real(c_double), dimension(ldc, *) :: C
real(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
real(c_double) :: alpha, beta
end function cublasXtDsyrkx
integer(c_int) function cublasXtCsyrkx &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtCsyrkx")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha, beta
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: uplo, trans
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtCsyrkx
integer(c_int) function cublasXtZsyrkx &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtZsyrkx")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
integer(c_int), value :: uplo, trans
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha, beta
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZsyrkx
integer(c_int) function cublasXtCherk (handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc) &
bind (c, name="cublasXtCherk")
import
integer(c_int), value :: uplo, trans, n, k, lda, ldc
real(c_float) :: alpha, beta
type(cublasXtHandle), value :: handle
complex(c_float), dimension(ldc, *) :: C
complex(c_float), dimension(lda, *) :: A
end function cublasXtCherk
integer(c_int) function cublasXtZherk (handle, uplo, trans, n, k, alpha, A, lda, beta, C, ldc) &
bind (c, name="cublasXtZherk")
import
integer(c_int), value :: uplo, trans, n, k, lda, ldc
complex(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
real(c_double) :: alpha, beta
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZherk
integer(c_int) function cublasXtCher2k &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtCher2k")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha
real(c_float) :: beta
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: uplo, trans
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtCher2k
integer(c_int) function cublasXtZher2k &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtZher2k")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
integer(c_int), value :: uplo, trans
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
real(c_double) :: beta
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZher2k
integer(c_int) function cublasXtCherkx &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtCherkx")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha
real(c_float) :: beta
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: uplo, trans
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtCherkx
integer(c_int) function cublasXtZherkx &
(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtZherkx")
import
integer(c_size_t), value :: n, k, lda, ldb, ldc
integer(c_int), value :: uplo, trans
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
real(c_double) :: beta
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZherkx
integer(c_int) function cublasXtStrsm &
(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb) &
bind (c, name="cublasXtStrsm")
import
integer(c_size_t), value :: m, n, lda, ldb
real(c_float), dimension(lda, *) :: A
real(c_float) :: alpha
integer(c_int), value :: side, uplo, trans, diag
real(c_float), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
end function cublasXtStrsm
integer(c_int) function cublasXtDtrsm &
(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb) &
bind (c, name="cublasXtDtrsm")
import
integer(c_size_t), value :: m, n, lda, ldb
real(c_double), dimension(ldb, *) :: B
integer(c_int), value :: side, uplo, trans, diag
real(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
real(c_double) :: alpha
end function cublasXtDtrsm
integer(c_int) function cublasXtCtrsm &
(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb) &
bind (c, name="cublasXtCtrsm")
import
integer(c_size_t), value :: m, n, lda, ldb
complex(c_float) :: alpha
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: side, uplo, trans, diag
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtCtrsm
integer(c_int) function cublasXtZtrsm &
(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb) &
bind (c, name="cublasXtZtrsm")
import
integer(c_size_t), value :: m, n, lda, ldb
integer(c_int), value :: side, uplo, trans, diag
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
end function cublasXtZtrsm
integer(c_int) function cublasXtStrmm &
(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb, C, ldc) &
bind (c, name="cublasXtStrmm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
real(c_float), dimension(lda, *) :: A
real(c_float) :: alpha
integer(c_int), value :: side, uplo, trans, diag
real(c_float), dimension(ldc, *) :: C
real(c_float), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
end function cublasXtStrmm
integer(c_int) function cublasXtDtrmm &
(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb, C, ldc) &
bind (c, name="cublasXtDtrmm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
real(c_double), dimension(ldb, *) :: B
integer(c_int), value :: side, uplo, trans, diag
real(c_double), dimension(ldc, *) :: C
real(c_double), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
real(c_double) :: alpha
end function cublasXtDtrmm
integer(c_int) function cublasXtCtrmm &
(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb, C, ldc) &
bind (c, name="cublasXtCtrmm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: side, uplo, trans, diag
complex(c_float), dimension(lda, *) :: A
type(cublasXtHandle), value :: handle
end function cublasXtCtrmm
integer(c_int) function cublasXtZtrmm &
(handle, side, uplo, trans, diag, m, n, alpha, A, lda, B, ldb, C, ldc) &
bind (c, name="cublasXtZtrmm")
import
integer(c_size_t), value :: m, n, lda, ldb, ldc
integer(c_int), value :: side, uplo, trans, diag
complex(c_double), dimension(lda, *) :: A
complex(c_double) :: alpha
complex(c_double), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZtrmm
integer(c_int) function cublasXtSspmm (handle, side, uplo, m, n, alpha, AP, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtSspmm")
import
integer(c_size_t), value :: m, n, ldb, ldc
real(c_float) :: alpha, beta
integer(c_int), value :: side, uplo
real(c_float), dimension(ldc, *) :: C
real(c_float), dimension(ldb, *) :: B
type(cublasXtHandle), value :: handle
real(c_float), dimension(*) :: AP
end function cublasXtSspmm
integer(c_int) function cublasXtDspmm (handle, side, uplo, m, n, alpha, AP, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtDspmm")
import
integer(c_size_t), value :: m, n, ldb, ldc
real(c_double), dimension(ldb, *) :: B
real(c_double), dimension(*) :: AP
integer(c_int), value :: side, uplo
real(c_double), dimension(ldc, *) :: C
type(cublasXtHandle), value :: handle
real(c_double) :: alpha, beta
end function cublasXtDspmm
integer(c_int) function cublasXtCspmm (handle, side, uplo, m, n, alpha, AP, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtCspmm")
import
integer(c_size_t), value :: m, n, ldb, ldc
complex(c_float), dimension(ldc, *) :: C
complex(c_float) :: alpha, beta
complex(c_float), dimension(*) :: AP
complex(c_float), dimension(ldb, *) :: B
integer(c_int), value :: side, uplo
type(cublasXtHandle), value :: handle
end function cublasXtCspmm
integer(c_int) function cublasXtZspmm (handle, side, uplo, m, n, alpha, AP, B, ldb, beta, C, ldc) &
bind (c, name="cublasXtZspmm")
import
integer(c_size_t), value :: m, n, ldb, ldc
integer(c_int), value :: side, uplo
complex(c_double) :: alpha, beta
complex(c_double), dimension(ldb, *) :: B
complex(c_double), dimension(*) :: AP
type(cublasXtHandle), value :: handle
complex(c_double), dimension(ldc, *) :: C
end function cublasXtZspmm
end interface
end module