AnsweredAssumed Answered

ACML 6 example segfaults

Question asked by vigo on Jun 30, 2014
Latest reply on Aug 23, 2014 by ssavec

Hello,

Many of the example programs for ACML 6 are compiling fine but then terminating with segfaults. Specifically, the following are not working for me:

cgels_c_example.exe

cgesv_c_example.exe

dgesdd_c_example.exe

dgetrf_example.exe

sgels_c_example.exe

sgesv_c_example.exe

sgetrf_c_example.exe

sgetrf_cpp_example.exe

sgetrf_example.exe

zgels_c_example.exe


I've pasted some relevant system information below, and the output of strace and gdb on a few of the failing examples. Let me know if there is any more information I can provide.

Thanks.



$ uname -a

Linux vigo 3.15.1-1-ARCH #1 SMP PREEMPT Tue Jun 17 09:32:20 CEST 2014 x86_64 GNU/Linux

 

$ gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper

Target: x86_64-unknown-linux-gnu

Configured with: /build/gcc/src/gcc-4.9-20140604/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --disable-multilib --disable-werror --enable-checking=release

Thread model: posix

gcc version 4.9.0 20140604 (prerelease) (GCC)

 

$ util/cpuid.exe

Chip manufacturer: AuthenticAMD

AuthenticAMD family 15 extended family 1 model 4

Model Name: AMD Phenom(tm) II X4 955 Processor

Chip supports SSE

Chip supports SSE2

Chip supports SSE3

Chip does not support AVX

Chip does not support FMA3

Chip does not support FMA4

 

$ gdb ./dgetrf_example.exe

Reading symbols from ./dgetrf_example.exe...(no debugging symbols found)...done.

(gdb) run

Starting program: /home/vigo/Downloads/acml-gfortran/gfortran64/examples/dgetrf_example.exe

warning: Could not load shared library symbols for linux-vdso.so.1.

Do you need "set solib-search-path" or "set sysroot"?

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/usr/lib/libthread_db.so.1".

ACML example: solution of linear equations using DGETRF/DGETRS

--------------------------------------------------------------

 

 

Matrix A:

     1.800E+00    2.880E+00    2.050E+00   -8.900E-01

     5.250E+00   -2.950E+00   -9.500E-01   -3.800E+00

     1.580E+00   -2.690E+00   -2.900E+00   -1.040E+00

    -1.110E+00   -6.600E-01   -5.900E-01    8.000E-01

 

 

Right-hand-side matrix B:

     9.520E+00    1.847E+01

     2.435E+01    2.250E+00

     7.700E-01   -1.328E+01

    -6.220E+00   -6.210E+00

 

 

 

 

Program received signal SIGSEGV, Segmentation fault.

0x0000000000000000 in ?? ()

(gdb) bt

#0  0x0000000000000000 in ?? ()

#1  0x00007ffff5eaa9e5 in dtrsm_ () from /home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml.so

#2  0x00007ffff5b2eadf in dgetrs_ () from /home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml.so

#3  0x000000000040106e in MAIN__ ()

#4  0x000000000040129a in main ()

(gdb)

 

$ gdb ./sgetrf_example.exe

Program received signal SIGSEGV, Segmentation fault.

0x0000000000000000 in ?? ()

(gdb) bt

#0  0x0000000000000000 in ?? ()

#1  0x00007ffff69ec025 in strsm_ () from /home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml.so

#2  0x00007ffff66cb74f in sgetrs7z_ () from /home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml.so

#3  0x00007ffff66cc3ee in sgetrs_ () from /home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml.so

#4  0x00007ffff66cbfb4 in sgetrs () from /home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml.so

#5  0x0000000000400b30 in main ()

(gdb)

 

$ strace ./dgetrf_example.exe

execve("./dgetrf_example.exe", ["./dgetrf_example.exe"], [/* 45 vars */]) = 0

brk(0)                                  = 0x17c4000

access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/tls/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/tls/x86_64", 0x7fff75e40de0) = -1 ENOENT (No such file or directory)

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/tls/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/tls", 0x7fff75e40de0) = -1 ENOENT (No such file or directory)

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/x86_64", 0x7fff75e40de0) = -1 ENOENT (No such file or directory)

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/home/vigo/Downloads/acml-gfortran/gfortran64/lib", {st_mode=S_IFDIR|0755, st_size=360, ...}) = 0

open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3

fstat(3, {st_mode=S_IFREG|0644, st_size=206845, ...}) = 0

mmap(NULL, 206845, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f032bd51000

close(3)                                = 0

open("/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\"\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=31760, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f032bd50000

mmap(NULL, 2128912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f032b95c000

mprotect(0x7f032b963000, 2093056, PROT_NONE) = 0

mmap(0x7f032bb62000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f032bb62000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\16\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=14672, ...}) = 0

mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f032b758000

mprotect(0x7f032b75b000, 2093056, PROT_NONE) = 0

mmap(0x7f032b95a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f032b95a000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/usr/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\271\5\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=1024288, ...}) = 0

mmap(NULL, 3204960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f032b449000

mprotect(0x7f032b539000, 2097152, PROT_NONE) = 0

mmap(0x7f032b739000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf0000) = 0x7f032b739000

mmap(0x7f032b743000, 83808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f032b743000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml.so", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200r\n\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=35912646, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f032bd4f000

mmap(NULL, 38151552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0328fe6000

mprotect(0x7f032b17e000, 2093056, PROT_NONE) = 0

mmap(0x7f032b37d000, 126976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2197000) = 0x7f032b37d000

mmap(0x7f032b39c000, 705920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f032b39c000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libgfortran.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/usr/lib/libgfortran.so.3", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\216\1\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=1209400, ...}) = 0

mmap(NULL, 3305040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0328cbf000

mprotect(0x7f0328de4000, 2097152, PROT_NONE) = 0

mmap(0x7f0328fe4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x125000) = 0x7f0328fe4000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200U\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=1063360, ...}) = 0

mmap(NULL, 3158360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f03289bb000

mprotect(0x7f0328abe000, 2093056, PROT_NONE) = 0

mmap(0x7f0328cbd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x102000) = 0x7f0328cbd000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/usr/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260*\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0644, st_size=90088, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f032bd4e000

mmap(NULL, 2185952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f03287a5000

mprotect(0x7f03287bb000, 2093056, PROT_NONE) = 0

mmap(0x7f03289ba000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f03289ba000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libquadmath.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/usr/lib/libquadmath.so.0", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320#\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=250840, ...}) = 0

mmap(NULL, 2346000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0328568000

mprotect(0x7f03285a5000, 2093056, PROT_NONE) = 0

mmap(0x7f03287a4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3c000) = 0x7f03287a4000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\1\2\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=2047384, ...}) = 0

mmap(NULL, 3858192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f03281ba000

mprotect(0x7f032835e000, 2097152, PROT_NONE) = 0

mmap(0x7f032855e000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a4000) = 0x7f032855e000

mmap(0x7f0328564000, 16144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0328564000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000`\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=149301, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f032bd4d000

mmap(NULL, 2217104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0327f9c000

mprotect(0x7f0327fb4000, 2097152, PROT_NONE) = 0

mmap(0x7f03281b4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f03281b4000

mmap(0x7f03281b6000, 13456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f03281b6000

close(3)                                = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f032bd4c000

mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f032bd4a000

arch_prctl(ARCH_SET_FS, 0x7f032bd4a740) = 0

mprotect(0x7f032855e000, 16384, PROT_READ) = 0

mprotect(0x7f03281b4000, 4096, PROT_READ) = 0

mprotect(0x7f0328cbd000, 4096, PROT_READ) = 0

mprotect(0x7f032bb62000, 4096, PROT_READ) = 0

mprotect(0x7f032b95a000, 4096, PROT_READ) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f032bd49000

mprotect(0x7f032b739000, 32768, PROT_READ) = 0

mprotect(0x7f0328fe6000, 35225600, PROT_READ|PROT_WRITE) = 0

mprotect(0x7f0328fe6000, 35225600, PROT_READ|PROT_EXEC) = 0

mprotect(0x7f032b37d000, 4096, PROT_READ) = 0

mprotect(0x7f032bd84000, 4096, PROT_READ) = 0

munmap(0x7f032bd51000, 206845)          = 0

set_tid_address(0x7f032bd4aa10)         = 25633

set_robust_list(0x7f032bd4aa20, 24)     = 0

rt_sigaction(SIGRTMIN, {0x7f0327fa1b10, [], SA_RESTORER|SA_SIGINFO, 0x7f0327fab4b0}, NULL, 8) = 0

rt_sigaction(SIGRT_1, {0x7f0327fa1ba0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f0327fab4b0}, NULL, 8) = 0

rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0

getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0

brk(0)                                  = 0x17c4000

brk(0x17e5000)                          = 0x17e5000

fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0

fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0

fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0

futex(0x7f032b755bcc, FUTEX_WAKE_PRIVATE, 2147483647) = 0

futex(0x7f032b755bd8, FUTEX_WAKE_PRIVATE, 2147483647) = 0

readlink("/proc/self/exe", "/home/vigo/Downloads/acml-gfor"..., 4095) = 81

rt_sigaction(SIGQUIT, {0x7f0328cd8ad0, [QUIT], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGILL, {0x7f0328cd8ad0, [ILL], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGABRT, {0x7f0328cd8ad0, [ABRT], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGFPE, {0x7f0328cd8ad0, [FPE], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGSEGV, {0x7f0328cd8ad0, [SEGV], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGBUS, {0x7f0328cd8ad0, [BUS], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGSYS, {0x7f0328cd8ad0, [SYS], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGTRAP, {0x7f0328cd8ad0, [TRAP], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGXCPU, {0x7f0328cd8ad0, [XCPU], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

rt_sigaction(SIGXFSZ, {0x7f0328cd8ad0, [XFSZ], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {SIG_DFL, [], 0}, 8) = 0

access("/usr/local/sbin/addr2line", R_OK|X_OK) = -1 ENOENT (No such file or directory)

access("/usr/local/bin/addr2line", R_OK|X_OK) = -1 ENOENT (No such file or directory)

access("/usr/bin/addr2line", R_OK|X_OK) = 0

write(1, "ACML example: solution of linear"..., 63ACML example: solution of linear equations using DGETRF/DGETRS

) = 63

write(1, "--------------------------------"..., 63--------------------------------------------------------------

) = 63

write(1, "\n", 1

)                       = 1

write(1, "Matrix A:\n", 10Matrix A:

)             = 10

write(1, "     1.800E+00    2.880E+00    2"..., 54     1.800E+00    2.880E+00    2.050E+00   -8.900E-01

) = 54

write(1, "     5.250E+00   -2.950E+00   -9"..., 54     5.250E+00   -2.950E+00   -9.500E-01   -3.800E+00

) = 54

write(1, "     1.580E+00   -2.690E+00   -2"..., 54     1.580E+00   -2.690E+00   -2.900E+00   -1.040E+00

) = 54

write(1, "    -1.110E+00   -6.600E-01   -5"..., 54    -1.110E+00   -6.600E-01   -5.900E-01    8.000E-01

) = 54

write(1, "\n", 1

)                       = 1

write(1, "Right-hand-side matrix B:\n", 26Right-hand-side matrix B:

) = 26

write(1, "     9.520E+00    1.847E+01\n", 28     9.520E+00    1.847E+01

) = 28

write(1, "     2.435E+01    2.250E+00\n", 28     2.435E+01    2.250E+00

) = 28

write(1, "     7.700E-01   -1.328E+01\n", 28     7.700E-01   -1.328E+01

) = 28

write(1, "    -6.220E+00   -6.210E+00\n", 28    -6.220E+00   -6.210E+00

) = 28

write(1, "\n", 1

)                       = 1

futex(0x7f032b95b0c8, FUTEX_WAKE_PRIVATE, 2147483647) = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

open("/opt/gcc471/lib64/tls/x86_64/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/opt/gcc471/lib64/tls/x86_64", 0x7fff75e402f0) = -1 ENOENT (No such file or directory)

open("/opt/gcc471/lib64/tls/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/opt/gcc471/lib64/tls", 0x7fff75e402f0) = -1 ENOENT (No such file or directory)

open("/opt/gcc471/lib64/x86_64/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/opt/gcc471/lib64/x86_64", 0x7fff75e402f0) = -1 ENOENT (No such file or directory)

open("/opt/gcc471/lib64/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/opt/gcc471/lib64", 0x7fff75e402f0) = -1 ENOENT (No such file or directory)

open("/opt/gcc471/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/tls/x86_64/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/opt/gcc471/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/tls/x86_64", 0x7fff75e402f0) = -1 ENOENT (No such file or directory)

open("/opt/gcc471/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/tls/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/opt/gcc471/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/tls", 0x7fff75e402f0) = -1 ENOENT (No such file or directory)

open("/opt/gcc471/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/x86_64/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/opt/gcc471/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/x86_64", 0x7fff75e402f0) = -1 ENOENT (No such file or directory)

open("/opt/gcc471/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/libOpenCL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

stat("/opt/gcc471/lib/gcc/x86_64-unknown-linux-gnu/4.7.1", 0x7fff75e402f0) = -1 ENOENT (No such file or directory)

open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3

fstat(3, {st_mode=S_IFREG|0644, st_size=206845, ...}) = 0

mmap(NULL, 206845, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f032bd51000

close(3)                                = 0

open("/usr/lib/libOpenCL.so", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\33\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=21296, ...}) = 0

mmap(NULL, 2116768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0327d97000

mprotect(0x7f0327d9b000, 2097152, PROT_NONE) = 0

mmap(0x7f0327f9b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f0327f9b000

mprotect(0x7f032bd84000, 3540, PROT_READ|PROT_WRITE) = 0

mprotect(0x7f032bd84000, 3540, PROT_READ) = 0

mprotect(0x7fff75e41000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0

close(3)                                = 0

munmap(0x7f032bd51000, 206845)          = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml_bridge.so", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\256\5\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=1788074, ...}) = 0

mmap(NULL, 3610864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0327a25000

mprotect(0x7f0327b8d000, 2097152, PROT_NONE) = 0

mmap(0x7f0327d8d000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x168000) = 0x7f0327d8d000

mmap(0x7f0327d95000, 6384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0327d95000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libacml_script.so.1", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\177\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=290838, ...}) = 0

mmap(NULL, 2348768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f03277e7000

mprotect(0x7f0327823000, 2093056, PROT_NONE) = 0

mmap(0x7f0327a22000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3b000) = 0x7f0327a22000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libclBLAS.so.2", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360'\1\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=942759, ...}) = 0

mmap(NULL, 2998920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f032750a000

mprotect(0x7f03275df000, 2093056, PROT_NONE) = 0

mmap(0x7f03277de000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd4000) = 0x7f03277de000

mmap(0x7f03277e2000, 17032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f03277e2000

close(3)                                = 0

open("/home/vigo/Downloads/acml-gfortran/gfortran64/lib/libclFFT.so.2", O_RDONLY|O_CLOEXEC) = 3

read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\314\0\0\0\0\0\0"..., 832) = 832

fstat(3, {st_mode=S_IFREG|0755, st_size=663329, ...}) = 0

mmap(NULL, 2718944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0327272000

mprotect(0x7f0327309000, 2093056, PROT_NONE) = 0

mmap(0x7f0327508000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x96000) = 0x7f0327508000

close(3)                                = 0

mprotect(0x7f0327508000, 4096, PROT_READ) = 0

mprotect(0x7f03277de000, 4096, PROT_READ) = 0

mprotect(0x7f0327a22000, 8192, PROT_READ) = 0

--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---

write(2, "\nProgram received signal SIGSEGV"..., 81

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

) = 81

write(2, "\nBacktrace for this error:\n", 27

Backtrace for this error:

) = 27

pipe([3, 4])                            = 0

pipe([5, 6])                            = 0

clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f032bd4aa10) = 25634

close(4)                                = 0

close(5)                                = 0

futex(0x7f03289ba850, FUTEX_WAKE_PRIVATE, 2147483647) = 0

write(6, "7F0328CD84F7", 12)            = 12

write(6, "\n", 1)                       = 1

read(3, "?", 1)                         = 1

read(3, "?", 1)                         = 1

read(3, "\n", 1)                        = 1

read(3, "?", 1)                         = 1

read(3, "?", 1)                         = 1

read(3, ":", 1)                         = 1

read(3, "0", 1)                         = 1

read(3, "\n", 1)                        = 1

write(2, "#0  ", 4#0  )                     = 4

write(2, "0x", 20x)                       = 2

write(2, "7F0328CD84F7", 127F0328CD84F7)            = 12

write(2, "\n", 1

)                       = 1

write(6, "7F0328CD8B3E", 12)            = 12

write(6, "\n", 1)                       = 1

read(3, "?", 1)                         = 1

read(3, "?", 1)                         = 1

read(3, "\n", 1)                        = 1

read(3, "?", 1)                         = 1

read(3, "?", 1)                         = 1

read(3, ":", 1)                         = 1

read(3, "0", 1)                         = 1

read(3, "\n", 1)                        = 1

write(2, "#1  ", 4#1  )                     = 4

write(2, "0x", 20x)                       = 2

write(2, "7F0328CD8B3E", 127F0328CD8B3E)            = 12

write(2, "\n", 1

)                       = 1

write(6, "7F03281EDDEF", 12)            = 12

write(6, "\n", 1)                       = 1

read(3, "?", 1)                         = 1

read(3, "?", 1)                         = 1

read(3, "\n", 1)                        = 1

read(3, "?", 1)                         = 1

read(3, "?", 1)                         = 1

read(3, ":", 1)                         = 1

read(3, "0", 1)                         = 1

read(3, "\n", 1)                        = 1

write(2, "#2  ", 4#2  )                     = 4

write(2, "0x", 20x)                       = 2

write(2, "7F03281EDDEF", 127F03281EDDEF)            = 12

write(2, "\n", 1

)                       = 1

write(6, "0", 1)                        = 1

write(6, "\n", 1)                       = 1

read(3, "?", 1)                         = 1

read(3, "?", 1)                         = 1

read(3, "\n", 1)                        = 1

read(3, "?", 1)                         = 1

read(3, "?", 1)                         = 1

read(3, ":", 1)                         = 1

read(3, "0", 1)                         = 1

read(3, "\n", 1)                        = 1

write(2, "#3  ", 4#3  )                     = 4

write(2, "0x", 20x)                       = 2

write(2, "0", 10)                        = 1

write(2, "\n", 1

)                       = 1

close(6)                                = 0

close(3)                                = 0

wait4(-1, NULL, 0, NULL)                = 25634

--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25634, si_status=0, si_utime=0, si_stime=0} ---

rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, {0x7f0328cd8ad0, [SEGV], SA_RESTORER|SA_RESTART, 0x7f03281eddf0}, 8) = 0

tgkill(25633, 25633, SIGSEGV)           = 0

rt_sigreturn()                          = 0

--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_TKILL, si_pid=25633, si_uid=1000} ---

+++ killed by SIGSEGV +++

Outcomes