[Bug 2039595] Re: Update qwt to 6.3.0

2024-05-30 Thread Mehdi Chinoune
** Changed in: qwt (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2039595

Title:
  Update qwt to 6.3.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qwt/+bug/2039595/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2039595] Re: Update qwt to 6.3.0

2024-05-09 Thread Mehdi Chinoune
** Summary changed:

- Update qwt to 6.2.0
+ Update qwt to 6.3.0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2039595

Title:
  Update qwt to 6.3.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qwt/+bug/2039595/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907812] Re: Can't build simple OpenMP offloading programs (needs -no-pie)

2021-11-25 Thread Mehdi Chinoune
No will to fix it.
Close

** Changed in: gcc-9 (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs (needs -no-pie)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907812] Re: Can't build simple OpenMP offloading programs (needs -no-pie)

2021-11-25 Thread Mehdi Chinoune
No will to fix it
Close

** Changed in: gcc-10 (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs (needs -no-pie)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907812] Re: Can't build simple OpenMP offloading programs (needs -no-pie)

2021-10-15 Thread Mehdi Chinoune
No need to pass -no-pie with gcc-11, but still throwing some warnings:

/usr/bin/ld: /tmp/ccpIxsYV.crtoffloadtable.o: warning: relocation against 
`__offload_vars_end' in read-only section `.rodata'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

Still stop running with big size matrices:

 ./test.x 1024
 dim1 = dim2 = 1024
 MATMUL Time =   0.12400 

libgomp: cuCtxSynchronize error: the launch timed out and was terminated

libgomp: cuMemFree_v2 error: the launch timed out and was terminated

libgomp: device finalization failed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs (needs -no-pie)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1878760] Re: gcc-10 is selecting amdgcn target by default

2021-04-26 Thread Mehdi Chinoune
If a package require another package to fuction, then it should be marked as a 
required dependency.
Or maybe you should merge both packages in one package called gcc-offload as 
they are both required to build/run offloaded programs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1878760

Title:
  gcc-10 is selecting amdgcn target by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1878760/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1878760] Re: gcc-10 is selecting amdgcn target by default

2021-04-23 Thread Mehdi Chinoune
** Changed in: gcc-10 (Ubuntu)
   Status: Invalid => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1878760

Title:
  gcc-10 is selecting amdgcn target by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1878760/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907812] Re: Can't build simple OpenMP offloading programs (needs -no-pie)

2021-04-23 Thread Mehdi Chinoune
It's getting worse on Ubuntu 21.04

$ gfortran -fopenmp matmul.f90 -o test.x
lto-wrapper: fatal error: could not find accel/amdgcn-amdhsa/mkoffload in 
/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/
 (consider using ‘-B’)
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

I reported that before but someone has closed it.

$ gfortran -fopenmp -foffload=nvptx-none matmul.f90 -o test.x
/usr/bin/ld: /tmp/ccvGeRgU.crtoffloadtable.o: warning: relocation against 
`__offload_vars_end' in read-only section `.rodata'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

$ gfortran -fopenmp -foffload=nvptx-none -no-pie matmul.f90 -o test.x
$ ./test.x 1024
 dim1 = dim2 = 1024
 MATMUL Time =6.8037E-02

libgomp: while loading libgomp-plugin-gcn.so.1: libgomp-plugin-gcn.so.1: cannot 
open shared object file: No such file or directory
 Offloading Time =11.8520002
 Max(|C2-C1|) =5.79833984E-04
$ ./test.x 1024
 dim1 = dim2 = 1024
 MATMUL Time =6.3010E-02

libgomp: while loading libgomp-plugin-gcn.so.1: libgomp-plugin-gcn.so.1:
cannot open shared object file: No such file or directory

libgomp: cuCtxSynchronize error: the launch timed out and was terminated

libgomp: cuMemFree_v2 error: the launch timed out and was terminated

libgomp: device finalization failed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs (needs -no-pie)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907812] Re: Can't build simple OpenMP offloading programs (needs -no-pie)

2021-04-23 Thread Mehdi Chinoune
It's getting worse on Ubuntu 21.04

$ gfortran -fopenmp matmul.f90 -o test.x
lto-wrapper: fatal error: could not find accel/amdgcn-amdhsa/mkoffload in 
/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/
 (consider using ‘-B’)
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

I reported that before but someone has closed it.

$ gfortran -fopenmp -foffload=nvptx-none matmul.f90 -o test.x
/usr/bin/ld: /tmp/ccvGeRgU.crtoffloadtable.o: warning: relocation against 
`__offload_vars_end' in read-only section `.rodata'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

$ gfortran -fopenmp -foffload=nvptx-none -no-pie matmul.f90 -o test.x
$ ./test.x
 dim1 = dim2 =0
 MATMUL Time =0.

libgomp: while loading libgomp-plugin-gcn.so.1: libgomp-plugin-gcn.so.1:
cannot open shared object file: No such file or directory

libgomp: Trying to map into device [0xf35dc0..0xf35dc0) object when
[0xf35da0..0xf35da0) is already mapped

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs (needs -no-pie)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907812] Re: Can't build simple OpenMP offloading programs on Ubuntu 20.10

2020-12-19 Thread Mehdi Chinoune
Building with "-no-pie" resolves the problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs on Ubuntu 20.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907812] Re: Can't build simple OpenMP offloading programs on Ubuntu 20.10

2020-12-13 Thread Mehdi Chinoune
** Also affects: gcc-9 (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs on Ubuntu 20.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907812] [NEW] Can't build simple OpenMP offloading programs on Ubuntu 20.10

2020-12-11 Thread Mehdi Chinoune
Public bug reported:

$cat prod.f90
program main
  implicit none
  integer, parameter :: sp = selected_real_kind(6,37)
  integer, parameter :: n = 4096
  real(sp), allocatable :: a(:), b(:), c(:), c2(:)
  integer :: i

  allocate( a(n), b(n), c(n) )
  
  c = 0._sp
  call random_number(a)
  call random_number(b)

  !$omp target teams map(to: a, b) map(from: c)
  !$omp distribute parallel do
  do i = 1, n
c(i) = a(i)*b(i)
  end do
  !$omp end target teams
  
  c2 = a*b
  
  print*, maxval( abs(c2-c) )
  
end program

$ gfortran -O3 -flto -fopenmp -foffload=nvptx-none prod.f90 -o test.x
/usr/bin/ld: /tmp/ccyvMF16.crtoffloadtable.o: warning: relocation against 
`__offload_vars_end' in read-only section `.rodata'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

Ubuntu 20.10 x86_64
Xeon E3-1505m-v6
Nvidia Quadro M2200

That doesn't happen on Ubuntu 20.04

** Affects: gcc-10 (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: offloading openmp

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907812

Title:
  Can't build simple OpenMP offloading programs on Ubuntu 20.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1907812/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1879092] Re: gfortran can't use vectorized functions.

2020-10-30 Thread Mehdi Chinoune
** Changed in: gcc-10 (Ubuntu)
   Status: New => Fix Released

** Changed in: gcc-10 (Ubuntu Focal)
   Status: New => Fix Released

** Changed in: gcc-10 (Ubuntu Groovy)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879092

Title:
  gfortran can't use vectorized functions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1879092/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1879092] Re: gfortran can't use vectorized functions.

2020-08-03 Thread Mehdi Chinoune
** Description changed:

  [Impact]
  
  After ubuntu-glibc maintainers changed "math-vector-fortran.h" install
  directory (LP#1861353), gfortran can no longer use it.
  
  [Test Case]
  
  This the old (good) behavior Ubuntu 19.10 gcc-9.2.1 glibc 2.30
  $ gfortran -O3 -mavx2 vect_test.f90 -o test.x
  $ nm ./test.x | grep sin
  U _ZGVdN4v_sin@@GLIBC_2.22
  U _ZGVdN8v_sinf@@GLIBC_2.22
  
  After that change : Ubuntu 20.04 gcc-9.3.0 glibc 2.31
  $ gfortran -O3 -mavx2 vect_test.f90 -o test.x
  $ nm ./test.x | grep sinn
  U sin@@GLIBC_2.2.5
  U sinf@@GLIBC_2.2.5
  
  $ cat vect_test.f90
  program test_vect
    implicit none
    integer, parameter :: n = 64*1024**2
    integer :: i
    integer(8) :: t1, t2, t0
    real(8) :: tic
    !
    real, allocatable :: a32(:), b32(:)
    real(8), allocatable :: a64(:), b64(:)
    !
    allocate( a32(n), a64(n))
    allocate( b32(n), b64(n))
    !
    call random_number(a32 )
    call random_number(a64 )
    !
    call system_clock(t0, tic)
    !
    do i = 1, n
  b32(i) = sin(a32(i))
    end do
    !
    call system_clock(t1)
    print*, (t1-t0)/tic
    !
    do i = 1, n
  b64(i) = sin(a64(i))
    end do
    !
    call system_clock(t2)
    print*, (t2-t1)/tic
    !
  end program test_vect
  
  Verbose:
  
  Ubuntu 19.10
  $ gfortran -O3 -mavx2 -v vect_test.f90 -o test.x
  ...
  /usr/lib/gcc/x86_64-linux-gnu/9/f951 vect_test.f90 -quiet -dumpbase 
vect_test.f90 -mavx2 -mtune=generic -march=x86-64 -auxbase vect_test -O3 
-version -fintrinsic-modules-path /usr/lib/gcc/x86_64-linux-gnu/9/finclude 
-fpre-include=/usr/include/finclude/math-vector-fortran.h -o /tmp/cc2E2K8s.s
  ...
  
  Ubuntu 20.04
  $ gfortran -O3 -mavx2 -v vect_test.f90 -o test.x
  ...
  /usr/lib/gcc/x86_64-linux-gnu/9/f951 vect_test.f90 -quiet -dumpbase 
vect_test.f90 -mavx2 -mtune=generic -march=x86-64 -auxbase vect_test -O3 
-version -fintrinsic-modules-path /usr/lib/gcc/x86_64-linux-gnu/9/finclude -o 
/tmp/cc4swJwz.s
  ...
  
- [Regression Potential]
- 
- The fix ships the file on all architectures and it is used in gfortran
- compilations. If the conditions in the file did not work properly those
- could break gfortran compilations on other architectures. Looking at the
- file all lines are conditionalized and I've also tested gfortran
- compilation in verbose mode on s390x and the optimizations did not take
- place (as it was expected).
- 
  
  [Other Info]
  
  As you can see gfortran is not preincluding "math-vector-fortran.h" file on 
Ubuntu 20.04.
  A workaround is to copy "math-vector-fortran.h" to /usr/include/finclude 
(which is empty!).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879092

Title:
  gfortran can't use vectorized functions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1879092/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1882015] [NEW] Patch gfortran to use vectorized glibc functions.

2020-06-03 Thread Mehdi Chinoune
Public bug reported:

Originally reported in
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1879092 .

Maybe you can fix it by patching gcc/gfortran.

** Affects: gcc-10 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1882015

Title:
  Patch gfortran to use vectorized glibc functions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1882015/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1879092] Re: gfortran can't use vectorized functions.

2020-05-16 Thread Mehdi Chinoune
** Description changed:

- After glibc maintainers changed "math-vector-fortran.h" install
- directory, gfortran can no longer use it.
+ After ubuntu-glibc maintainers changed "math-vector-fortran.h" install
+ directory (LP#1861353), gfortran can no longer use it.
  
  This the old behavior Ubuntu 19.10 gcc-9.2.1 glibc 2.30
  $ gfortran -O3 -mavx2 vect_test.f90 -o test.x
  $ nm ./test.x | grep sin
- U _ZGVdN4v_sin@@GLIBC_2.22
- U _ZGVdN8v_sinf@@GLIBC_2.22
+ U _ZGVdN4v_sin@@GLIBC_2.22
+ U _ZGVdN8v_sinf@@GLIBC_2.22
  
  After that change : Ubuntu 20.04 gcc-9.3.0 glibc 2.31
  $ gfortran -O3 -mavx2 vect_test.f90 -o test.x
- $ nm ./test.x | grep sinn 

- U sin@@GLIBC_2.2.5
- U sinf@@GLIBC_2.2.5
+ $ nm ./test.x | grep sinn
+ U sin@@GLIBC_2.2.5
+ U sinf@@GLIBC_2.2.5
  
  $ cat vect_test.f90
  program test_vect
-   implicit none
-   integer, parameter :: n = 64*1024**2
-   integer :: i
-   integer(8) :: t1, t2, t0
-   real(8) :: tic
-   !
-   real, allocatable :: a32(:), b32(:)
-   real(8), allocatable :: a64(:), b64(:)
-   !
-   allocate( a32(n), a64(n))
-   allocate( b32(n), b64(n))
-   !
-   call random_number(a32 )
-   call random_number(a64 )
-   !
-   call system_clock(t0, tic)
-   !
-   do i = 1, n
- b32(i) = sin(a32(i))
-   end do
-   !
-   call system_clock(t1)
-   print*, (t1-t0)/tic
-   !
-   do i = 1, n
- b64(i) = sin(a64(i))
-   end do
-   !
-   call system_clock(t2)
-   print*, (t2-t1)/tic
-   !
+   implicit none
+   integer, parameter :: n = 64*1024**2
+   integer :: i
+   integer(8) :: t1, t2, t0
+   real(8) :: tic
+   !
+   real, allocatable :: a32(:), b32(:)
+   real(8), allocatable :: a64(:), b64(:)
+   !
+   allocate( a32(n), a64(n))
+   allocate( b32(n), b64(n))
+   !
+   call random_number(a32 )
+   call random_number(a64 )
+   !
+   call system_clock(t0, tic)
+   !
+   do i = 1, n
+ b32(i) = sin(a32(i))
+   end do
+   !
+   call system_clock(t1)
+   print*, (t1-t0)/tic
+   !
+   do i = 1, n
+ b64(i) = sin(a64(i))
+   end do
+   !
+   call system_clock(t2)
+   print*, (t2-t1)/tic
+   !
  end program test_vect
  
  Verbose:
  
  Ubuntu 19.10
  $ gfortran -O3 -mavx2 -v vect_test.f90 -o test.x
  ...
  /usr/lib/gcc/x86_64-linux-gnu/9/f951 vect_test.f90 -quiet -dumpbase 
vect_test.f90 -mavx2 -mtune=generic -march=x86-64 -auxbase vect_test -O3 
-version -fintrinsic-modules-path /usr/lib/gcc/x86_64-linux-gnu/9/finclude 
-fpre-include=/usr/include/finclude/math-vector-fortran.h -o /tmp/cc2E2K8s.s
  ...
  
  Ubuntu 20.04
  $ gfortran -O3 -mavx2 -v vect_test.f90 -o test.x
  ...
  /usr/lib/gcc/x86_64-linux-gnu/9/f951 vect_test.f90 -quiet -dumpbase 
vect_test.f90 -mavx2 -mtune=generic -march=x86-64 -auxbase vect_test -O3 
-version -fintrinsic-modules-path /usr/lib/gcc/x86_64-linux-gnu/9/finclude -o 
/tmp/cc4swJwz.s
  ...
  
  As you can see gfortran is not preincluding "math-vector-fortran.h" file on 
Ubuntu 20.04.
  A workaround is to copy "math-vector-fortran.h" to /usr/include/finclude 
(which is empty!).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879092

Title:
  gfortran can't use vectorized functions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1879092/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1879092] [NEW] gfortran can't use vectorized functions.

2020-05-16 Thread Mehdi Chinoune
Public bug reported:

After ubuntu-glibc maintainers changed "math-vector-fortran.h" install
directory (LP#1861353), gfortran can no longer use it.

This the old behavior Ubuntu 19.10 gcc-9.2.1 glibc 2.30
$ gfortran -O3 -mavx2 vect_test.f90 -o test.x
$ nm ./test.x | grep sin
U _ZGVdN4v_sin@@GLIBC_2.22
U _ZGVdN8v_sinf@@GLIBC_2.22

After that change : Ubuntu 20.04 gcc-9.3.0 glibc 2.31
$ gfortran -O3 -mavx2 vect_test.f90 -o test.x
$ nm ./test.x | grep sinn
U sin@@GLIBC_2.2.5
U sinf@@GLIBC_2.2.5

$ cat vect_test.f90
program test_vect
  implicit none
  integer, parameter :: n = 64*1024**2
  integer :: i
  integer(8) :: t1, t2, t0
  real(8) :: tic
  !
  real, allocatable :: a32(:), b32(:)
  real(8), allocatable :: a64(:), b64(:)
  !
  allocate( a32(n), a64(n))
  allocate( b32(n), b64(n))
  !
  call random_number(a32 )
  call random_number(a64 )
  !
  call system_clock(t0, tic)
  !
  do i = 1, n
b32(i) = sin(a32(i))
  end do
  !
  call system_clock(t1)
  print*, (t1-t0)/tic
  !
  do i = 1, n
b64(i) = sin(a64(i))
  end do
  !
  call system_clock(t2)
  print*, (t2-t1)/tic
  !
end program test_vect

Verbose:

Ubuntu 19.10
$ gfortran -O3 -mavx2 -v vect_test.f90 -o test.x
...
/usr/lib/gcc/x86_64-linux-gnu/9/f951 vect_test.f90 -quiet -dumpbase 
vect_test.f90 -mavx2 -mtune=generic -march=x86-64 -auxbase vect_test -O3 
-version -fintrinsic-modules-path /usr/lib/gcc/x86_64-linux-gnu/9/finclude 
-fpre-include=/usr/include/finclude/math-vector-fortran.h -o /tmp/cc2E2K8s.s
...

Ubuntu 20.04
$ gfortran -O3 -mavx2 -v vect_test.f90 -o test.x
...
/usr/lib/gcc/x86_64-linux-gnu/9/f951 vect_test.f90 -quiet -dumpbase 
vect_test.f90 -mavx2 -mtune=generic -march=x86-64 -auxbase vect_test -O3 
-version -fintrinsic-modules-path /usr/lib/gcc/x86_64-linux-gnu/9/finclude -o 
/tmp/cc4swJwz.s
...

As you can see gfortran is not preincluding "math-vector-fortran.h" file on 
Ubuntu 20.04.
A workaround is to copy "math-vector-fortran.h" to /usr/include/finclude (which 
is empty!).

** Affects: glibc (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879092

Title:
  gfortran can't use vectorized functions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1879092/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs