magmablas_*laswp_q parameter illegal value

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
ericdunn
Posts: 3
Joined: Tue Jan 06, 2015 10:15 am

magmablas_*laswp_q parameter illegal value

Post by ericdunn » Tue Jan 06, 2015 10:51 am

Just installed MAGMA 1.6.0 with ATLAS (gcc compilers) on Ubuntu 14. Running some of the test examples I noticed an error with magmablas when trying to use more than one GPU.

Here it passes with a single GPU

Code: Select all

dunnea@esx3:~/magma-1.6.0/testing$ ./testing_zgetrf -c2 --ngpu 1 --verbose
MAGMA 1.6.0  compiled for CUDA capability >= 3.0
CUDA runtime 6050, driver 6050. OpenMP threads 32. 
device 0: Tesla K40m, 745.0 MHz clock, 11519.6 MB memory, capability 3.5
device 1: Tesla K40m, 745.0 MHz clock, 11519.6 MB memory, capability 3.5
device 2: Tesla K40m, 745.0 MHz clock, 11519.6 MB memory, capability 3.5
device 3: Tesla K40m, 745.0 MHz clock, 11519.6 MB memory, capability 3.5
Usage: ./testing_zgetrf [options] [-h|--help]

ngpu 1
    M     N   CPU GFlop/s (sec)   GPU GFlop/s (sec)   |Ax-b|/(N*|A|*|x|)
=========================================================================
 1088  1088     ---   (  ---  )     79.54 (   0.04)   5.00e-19   ok
 2112  2112     ---   (  ---  )    158.07 (   0.16)   4.63e-19   ok
 3136  3136     ---   (  ---  )    238.51 (   0.34)   4.14e-19   ok
 4160  4160     ---   (  ---  )    148.58 (   1.29)   3.80e-19   ok
 5184  5184     ---   (  ---  )    185.29 (   2.00)   3.71e-19   ok
 6208  6208     ---   (  ---  )    230.90 (   2.76)   3.73e-19   ok
 7232  7232     ---   (  ---  )    259.02 (   3.89)   3.49e-19   ok
 8256  8256     ---   (  ---  )    175.63 (   8.54)   3.52e-19   ok
 9280  9280     ---   (  ---  )    195.91 (  10.88)   3.27e-19   ok
10304 10304     ---   (  ---  )    218.88 (  13.33)   3.32e-19   ok
But here is where it fails with multiple GPUs (4 shown here, same error with --ngpu 2):

Code: Select all

dunnea@esx3:~/magma-1.6.0/testing$ ./testing_zgetrf -c2 --ngpu 4 --verbose
MAGMA 1.6.0  compiled for CUDA capability >= 3.0
CUDA runtime 6050, driver 6050. OpenMP threads 32. 
device 0: Tesla K40m, 745.0 MHz clock, 11519.6 MB memory, capability 3.5
device 1: Tesla K40m, 745.0 MHz clock, 11519.6 MB memory, capability 3.5
device 2: Tesla K40m, 745.0 MHz clock, 11519.6 MB memory, capability 3.5
device 3: Tesla K40m, 745.0 MHz clock, 11519.6 MB memory, capability 3.5
Usage: ./testing_zgetrf [options] [-h|--help]

ngpu 4
    M     N   CPU GFlop/s (sec)   GPU GFlop/s (sec)   |Ax-b|/(N*|A|*|x|)
=========================================================================
On entry to magmablas_zlaswp_q, parameter 4 had an illegal value (info = -4)
...
On entry to magmablas_zlaswp_q, parameter 4 had an illegal value (info = -4)
 1088  1088     ---   (  ---  )      4.24 (   0.81)   1.01e-05   failed
...
Error repeats many times and fails similarly for other tests (like sgetrf) that use *laswp. On larger runs, a similar error appears, first on parameter 5 (a few times), then parameter 4 (many times)

Code: Select all

...
On entry to magmablas_zlaswp_q, parameter 4 had an illegal value (info = -4)
 4160  4160     ---   (  ---  )    150.77 (   1.27)   1.40e-06   failed
On entry to magmablas_zlaswp_q, parameter 5 had an illegal value (info = -5)
On entry to magmablas_zlaswp_q, parameter 5 had an illegal value (info = -5)
On entry to magmablas_zlaswp_q, parameter 5 had an illegal value (info = -5)
On entry to magmablas_zlaswp_q, parameter 5 had an illegal value (info = -5)
On entry to magmablas_zlaswp_q, parameter 4 had an illegal value (info = -4)
...
On entry to magmablas_zlaswp_q, parameter 4 had an illegal value (info = -4)
 5184  5184     ---   (  ---  )    194.03 (   1.91)   1.02e-06   failed
...
Browsing the forum, it appears like this thread (viewtopic.php?f=2&t=1118&p=3143&hilit=p ... mber#p3143) may have some relevant information.

Thanks!

mgates3
Posts: 918
Joined: Fri Jan 06, 2012 2:13 pm

Re: magmablas_*laswp_q parameter illegal value

Post by mgates3 » Wed Jan 07, 2015 4:50 pm

This bug has been fixed for the next release. The relevant files are attached.
-mark
Attachments
laswp.tar.gz
(3.77 KiB) Downloaded 111 times

ericdunn
Posts: 3
Joined: Tue Jan 06, 2015 10:15 am

Re: magmablas_*laswp_q parameter illegal value

Post by ericdunn » Mon Jan 12, 2015 8:19 pm

Thanks! This fix worked for me.

Post Reply