exp_magma_quark in magma-1.7.0

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

exp_magma_quark in magma-1.7.0

Postby obgeneralao » Tue Jan 10, 2017 3:12 am

I tried to edit make.exp.inc, however I stumbled on this


# CPU peak performance (for one cpu only)
#
# Leave blank is unknown
# CPU_PEAK = 11.2
#MORE_INC += -DCPU_PEAK=8.4

#
# GPU peak performance (for one GPU only)
#
# Leave blank is unknown
# GPU_PEAK = 504.0
#MORE_INC += -DGPU_PEAK=504.0


How do you compute CPU_PEAK and GPU_PEAK?
I have Intel(R) Xeon(R) CPU E5-2620 and GTX 1070.
obgeneralao
 
Posts: 2
Joined: Tue Jan 10, 2017 3:02 am
Location: Quezon City Philippines

Re: exp_magma_quark in magma-1.7.0

Postby mgates3 » Thu Jan 12, 2017 3:34 pm

The exp (experimental) folder is quite old, and has actually been removed from later releases, so we can't offer much help on getting it to work.

That said, you can compute the peak from the # cores, GHz, and flops/cycle. See
http://stackoverflow.com/questions/1565 ... 2-avx-avx2
Or, if you compile the regular MAGMA and run testing_dgemm -l, that should give a good idea what the peak performance of each is. Here's a 20-core, 2.3 GHz Haswell (peak 736 Gflops) with a K40c (peak 1430 Gflops from NVIDIA specs). You can ignore the MAGMA Gflop/s; we use cuBLAS dgemm.

Code: Select all
prompt>  numactl --interleave=all ./testing_dgemm -l
% MAGMA 2.2.0  compiled for CUDA capability >= 3.5, 32-bit magma_int_t, 64-bit pointer.
% CUDA runtime 8000, driver 8000. OpenMP threads 20. MKL 11.3.0, MKL threads 20.
% device 0: Tesla K40c, 745.0 MHz clock, 11439.4 MiB memory, capability 3.5

% transA = No transpose, transB = No transpose
%   M     N     K   MAGMA Gflop/s (ms)  cuBLAS Gflop/s (ms)   CPU Gflop/s (ms)
%=========================================================================
 1088  1088  1088    674.31 (   3.82)    1066.20 (   2.42)    158.46 (  16.26)
 2112  2112  2112    715.34 (  26.34)    1161.18 (  16.23)    162.52 ( 115.93)
 3136  3136  3136    709.51 (  86.94)    1207.15 (  51.10)    305.55 ( 201.87)
 4160  4160  4160    708.10 ( 203.34)    1204.34 ( 119.55)    322.76 ( 446.10)
 5184  5184  5184    709.42 ( 392.76)    1214.81 ( 229.36)    353.99 ( 787.11)
 6208  6208  6208    710.74 ( 673.25)    1218.71 ( 392.63)    537.46 ( 890.31)
 7232  7232  7232    712.19 (1062.20)    1220.28 ( 619.94)    558.58 (1354.31)
 8256  8256  8256    707.39 (1591.04)    1224.05 ( 919.47)    570.12 (1974.12)
 9280  9280  9280    711.15 (2247.58)    1225.24 (1304.53)    626.18 (2552.55)
10304 10304 10304    713.36 (3067.17)    1226.84 (1783.45)    658.59 (3322.24)
mgates3
 
Posts: 738
Joined: Fri Jan 06, 2012 2:13 pm

Re: exp_magma_quark in magma-1.7.0

Postby obgeneralao » Sat Jan 14, 2017 5:05 am

Thanks for taking time to respond. I appreciate it. Looking forward to post more questions here in the future
obgeneralao
 
Posts: 2
Joined: Tue Jan 10, 2017 3:02 am
Location: Quezon City Philippines


Return to User discussion

Who is online

Users browsing this forum: Google [Bot] and 2 guests