Skip to content

Commit 87c7238

Browse files
authored
Merge pull request #641 from ThePortlandGroup/nv_stage
Pull 2018-12-17T19-02 Recent NVIDIA Changes
2 parents 0424a51 + 7689436 commit 87c7238

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+528
-276
lines changed

runtime/flang/fortDt.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,9 @@ typedef __INT_T dtype;
303303

304304
/*
305305
* data type representing the number of elements passed to
306-
* ENTF90(ALLOC04, alloc04), etc. * It's either a 64-bit type, or __INT_T
307-
* which can be either a 64-bit or 32-bit type depending on DESC_I8
306+
* ENTF90(ALLOC04, alloc04), etc.
308307
*/
309308

310-
#if defined(TARGET_X8664)
311309
#define __NELEM_T __INT8_T
312-
#else
313-
#define __NELEM_T __INT_T
314-
#endif
315310

316311
#endif /*_PGHPF_TYPES_H_*/

runtime/flang/gather_cmplx16.F95

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
! Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2+
! Copyright (c) 2012-2018, NVIDIA CORPORATION. All rights reserved.
33
!
44
! Licensed under the Apache License, Version 2.0 (the "License");
55
! you may not use this file except in compliance with the License.
@@ -21,11 +21,8 @@
2121

2222
subroutine ftn_gather_cmplx16( ta, a, lda, alpha, buffer, bufrows, bufcols )
2323
implicit none
24-
#ifdef TARGET_X8664
24+
2525
integer*8 lda
26-
#else
27-
integer lda
28-
#endif
2926
complex*16 :: a( lda,* ), alpha
3027
integer :: bufrows, bufcols
3128
integer :: i, j, ndx, ndxsave

runtime/flang/gather_cmplx8.F95

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
! Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2+
! Copyright (c) 2012-2018, NVIDIA CORPORATION. All rights reserved.
33
!
44
! Licensed under the Apache License, Version 2.0 (the "License");
55
! you may not use this file except in compliance with the License.
@@ -21,11 +21,8 @@
2121

2222
subroutine ftn_gather_cmplx8( ta, a, lda, alpha, buffer, bufrows, bufcols )
2323
implicit none
24-
#ifdef TARGET_X8664
24+
2525
integer*8 lda
26-
#else
27-
integer lda
28-
#endif
2926
complex*8 :: a( lda,* ), alpha
3027
integer :: bufrows, bufcols
3128
integer :: i, j, ndx, ndxsave

runtime/flang/gather_real4.F95

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
! Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2+
! Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
33
!
44
! Licensed under the Apache License, Version 2.0 (the "License");
55
! you may not use this file except in compliance with the License.
@@ -20,11 +20,8 @@
2020

2121
subroutine ftn_gather_real4( a, lda, alpha, buffer, bufrows, bufcols )
2222
implicit none
23-
#ifdef TARGET_X8664
23+
2424
integer*8 lda
25-
#else
26-
integer lda
27-
#endif
2825
real*4 :: a( lda,* ), alpha
2926
integer :: bufrows, bufcols
3027
integer i, j, ndx, ndxsave

runtime/flang/gather_real8.F95

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
! Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2+
! Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
33
!
44
! Licensed under the Apache License, Version 2.0 (the "License");
55
! you may not use this file except in compliance with the License.
@@ -20,11 +20,8 @@
2020

2121
subroutine ftn_gather_real8( a, lda, alpha, buffer, bufrows, bufcols )
2222
implicit none
23-
#ifdef TARGET_X8664
23+
2424
integer*8 lda
25-
#else
26-
integer lda
27-
#endif
2825
real*8 :: a( lda,* ), alpha
2926
integer :: bufrows, bufcols
3027
integer i, j, ndx, ndxsave

runtime/flang/iso_c_bind.F95

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ module ISO_C_BINDING
153153
interface operator (.ne.)
154154
module procedure compare_ne_cfunptrs
155155
end interface
156-
#if defined TARGET_LINUX_X8664 || defined TARGET_LLVM_64
157-
! added this to make the data-initializd module common block be at 32 bytes long
158-
! maybe only needed for linux86-64
159-
integer*8 :: __iso_bind_private_i = 11, __iso_bind_private_j = 23
160-
#endif
161156

162157
contains
163158
logical function compare_eq_cptrs(a,b)

runtime/flang/miscsup_com.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4833,11 +4833,7 @@ ENTF90(SPACINGD, spacingd)(__REAL8_T *d)
48334833

48344834
#ifndef DESC_I8
48354835

4836-
#if defined(TARGET_X8664)
48374836
typedef __INT8_T SZ_T;
4838-
#else
4839-
typedef __INT4_T SZ_T;
4840-
#endif
48414837

48424838
#undef _MZERO
48434839
#define _MZERO(n, t) \

runtime/flang/mvmul_cmplx16.F95

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
! Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2+
! Copyright (c) 2012-2018, NVIDIA CORPORATION. All rights reserved.
33
!
44
! Licensed under the Apache License, Version 2.0 (the "License");
55
! you may not use this file except in compliance with the License.
@@ -19,22 +19,15 @@
1919

2020
subroutine ftn_mvmul_cmplx16( ta, tb, m, k, alpha, a, lda, b, beta, c )
2121
implicit none
22-
#ifdef TARGET_X8664
22+
2323
integer*8 :: m, k, lda
24-
#else
25-
integer :: m, k, lda
26-
#endif
2724
complex*16 :: alpha, beta
2825
complex*16, dimension( lda, * ) :: a
2926
complex*16, dimension( * ) :: b, c
3027
integer :: ta, tb
3128
! Local variables
3229

33-
#ifdef TARGET_X8664
3430
integer*8 :: i, j, kk
35-
#else
36-
integer :: i, j, kk
37-
#endif
3831
complex*16 :: temp
3932

4033
! print *, "#### In mvmul ####"

runtime/flang/mvmul_cmplx8.F95

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
! Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2+
! Copyright (c) 2012-2018, NVIDIA CORPORATION. All rights reserved.
33
!
44
! Licensed under the Apache License, Version 2.0 (the "License");
55
! you may not use this file except in compliance with the License.
@@ -19,22 +19,15 @@
1919

2020
subroutine ftn_mvmul_cmplx8( ta, tb, m, k, alpha, a, lda, b, beta, c )
2121
implicit none
22-
#ifdef TARGET_X8664
22+
2323
integer*8 :: m, k, lda
24-
#else
25-
integer :: m, k, lda
26-
#endif
2724
complex*8 :: alpha, beta
2825
complex*8, dimension( lda, * ) :: a
2926
complex*8, dimension( * ) :: b, c
3027
integer :: ta, tb
3128
! Local variables
3229

33-
#ifdef TARGET_X8664
3430
integer*8 :: i, j, kk
35-
#else
36-
integer :: i, j, kk
37-
#endif
3831
complex*8 :: temp
3932

4033
! print *, "#### In mvmul ####"

runtime/flang/mvmul_real4.F95

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
! Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2+
! Copyright (c) 2012-2018, NVIDIA CORPORATION. All rights reserved.
33
!
44
! Licensed under the Apache License, Version 2.0 (the "License");
55
! you may not use this file except in compliance with the License.
@@ -20,22 +20,15 @@
2020

2121
subroutine ftn_mvmul_real4( ta, m, k, alpha, a, lda, b, beta, c )
2222
implicit none
23-
#ifdef TARGET_X8664
23+
2424
integer*8 :: m, k, lda
25-
#else
26-
integer :: m, k, lda
27-
#endif
2825
real*4 :: alpha, beta
2926
real*4, dimension( lda, * ) :: a
3027
real*4, dimension( * ) :: b, c
3128
integer :: ta
3229
! Local variables
3330

34-
#ifdef TARGET_X8664
3531
integer*8 :: i, j, kk
36-
#else
37-
integer :: i, j, kk
38-
#endif
3932
real*4 :: temp
4033

4134
if( ta .eq. 0 )then ! normally oriented a matrix

0 commit comments

Comments
 (0)