Skip to content

Commit 8f79c2b

Browse files
committed
Adding test and correcting issues uncovered by tests
1 parent 73a2fb9 commit 8f79c2b

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

flang/module/cudadevice.f90

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ attributes(device) subroutine threadfence_system()
7878
! Math API
7979

8080
interface __fadd_rn
81-
attributes(device) real function __fadd_rn(a,b) bind(c, name='__nv_fmul_rn')
81+
attributes(device) real function __fadd_rn(a,b) bind(c, name='__nv_fadd_rn')
8282
!dir$ ignore_tkr (d) a, (d) b
8383
real, value :: a, b
8484
end function
8585
end interface
8686
public :: __fadd_rn
8787

8888
interface __fadd_rz
89-
attributes(device) real function __fadd_rz(a,b) bind(c, name='__nv_fmul_rn')
89+
attributes(device) real function __fadd_rz(a,b) bind(c, name='__nv_fadd_rz')
9090
!dir$ ignore_tkr (d) a, (d) b
9191
real, value :: a, b
9292
end function
@@ -270,97 +270,97 @@ attributes(device) subroutine threadfence_system()
270270
public :: __fdiv_rd
271271

272272
interface __dadd_rn
273-
attributes(device) real function __dadd_rn(a,b) bind(c, name='__nv_dadd_rn')
273+
attributes(device) real(8) function __dadd_rn(a,b) bind(c, name='__nv_dadd_rn')
274274
!dir$ ignore_tkr (d) a, (d) b
275-
real, value :: a, b
275+
real(8), value :: a, b
276276
end function
277277
end interface
278278
public :: __dadd_rn
279279

280280
interface __dadd_rz
281-
attributes(device) real function __dadd_rz(a,b) bind(c, name='__nv_dadd_rz')
281+
attributes(device) real(8) function __dadd_rz(a,b) bind(c, name='__nv_dadd_rz')
282282
!dir$ ignore_tkr (d) a, (d) b
283-
real, value :: a, b
283+
real(8), value :: a, b
284284
end function
285285
end interface
286286
public :: __dadd_rz
287287

288288
interface __dadd_ru
289-
attributes(device) real function __dadd_ru(a,b) bind(c, name='__nv_dadd_ru')
289+
attributes(device) real(8) function __dadd_ru(a,b) bind(c, name='__nv_dadd_ru')
290290
!dir$ ignore_tkr (d) a, (d) b
291-
real, value :: a, b
291+
real(8), value :: a, b
292292
end function
293293
end interface
294294
public :: __dadd_ru
295295

296296
interface __dadd_rd
297-
attributes(device) real function __dadd_rd(a,b) bind(c, name='__nv_dadd_rd')
297+
attributes(device) real(8) function __dadd_rd(a,b) bind(c, name='__nv_dadd_rd')
298298
!dir$ ignore_tkr (d) a, (d) b
299-
real, value :: a, b
299+
real(8), value :: a, b
300300
end function
301301
end interface
302302
public :: __dadd_rd
303303

304304
interface __dmul_rn
305-
attributes(device) real function __dmul_rn(a,b) bind(c, name='__nv_dmul_rn')
305+
attributes(device) real(8) function __dmul_rn(a,b) bind(c, name='__nv_dmul_rn')
306306
!dir$ ignore_tkr (d) a, (d) b
307-
real, value :: a, b
307+
real(8), value :: a, b
308308
end function
309309
end interface
310310
public :: __dmul_rn
311311

312312
interface __dmul_rz
313-
attributes(device) real function __dmul_rz(a,b) bind(c, name='__nv_dmul_rz')
313+
attributes(device) real(8) function __dmul_rz(a,b) bind(c, name='__nv_dmul_rz')
314314
!dir$ ignore_tkr (d) a, (d) b
315-
real, value :: a, b
315+
real(8), value :: a, b
316316
end function
317317
end interface
318318
public :: __dmul_rz
319319

320320
interface __dmul_ru
321-
attributes(device) real function __dmul_ru(a,b) bind(c, name='__nv_dmul_ru')
321+
attributes(device) real(8) function __dmul_ru(a,b) bind(c, name='__nv_dmul_ru')
322322
!dir$ ignore_tkr (d) a, (d) b
323-
real, value :: a, b
323+
real(8), value :: a, b
324324
end function
325325
end interface
326326
public :: __dmul_ru
327327

328328
interface __dmul_rd
329-
attributes(device) real function __dmul_rd(a,b) bind(c, name='__nv_dmul_rd')
329+
attributes(device) real(8) function __dmul_rd(a,b) bind(c, name='__nv_dmul_rd')
330330
!dir$ ignore_tkr (d) a, (d) b
331-
real, value :: a, b
331+
real(8), value :: a, b
332332
end function
333333
end interface
334334
public :: __dmul_rd
335335

336336
interface __fma_rn
337-
attributes(device) real function __fma_rn(a,b) bind(c, name='__nv_fma_rn')
337+
attributes(device) real(8) function __fma_rn(a,b,c) bind(c, name='__nv_fma_rn')
338338
!dir$ ignore_tkr (d) a, (d) b
339-
real, value :: a, b
339+
real(8), value :: a, b, c
340340
end function
341341
end interface
342342
public :: __fma_rn
343343

344344
interface __fma_rz
345-
attributes(device) real function __fma_rz(a,b) bind(c, name='__nv_fma_rz')
345+
attributes(device) real(8) function __fma_rz(a,b,c) bind(c, name='__nv_fma_rz')
346346
!dir$ ignore_tkr (d) a, (d) b
347-
real, value :: a, b
347+
real(8), value :: a, b, c
348348
end function
349349
end interface
350350
public :: __fma_rz
351351

352352
interface __fma_ru
353-
attributes(device) real function __fma_ru(a,b) bind(c, name='__nv_fma_ru')
353+
attributes(device) real(8) function __fma_ru(a,b,c) bind(c, name='__nv_fma_ru')
354354
!dir$ ignore_tkr (d) a, (d) b
355-
real, value :: a, b
355+
real(8), value :: a, b, c
356356
end function
357357
end interface
358358
public :: __fma_ru
359359

360360
interface __fma_rd
361-
attributes(device) real function __fma_rd(a,b) bind(c, name='__nv_fma_rd')
361+
attributes(device) real(8) function __fma_rd(a,b,c) bind(c, name='__nv_fma_rd')
362362
!dir$ ignore_tkr (d) a, (d) b
363-
real, value :: a, b
363+
real(8), value :: a, b, c
364364
end function
365365
end interface
366366
public :: __fma_rd

0 commit comments

Comments
 (0)