Comments (3)
Hi,
May I ask what setting you used and what coprocessor is in the system?
Can you please try with the following settings:
PYMIC_KMP_AFFINITY=granularity=fine,balanced,verbose ./dgemm.py
That enables core pinning of the OpenMP threads of MKL’s dgemm on the device. If it worked, you will see some additional output of the OpenMP runtime, indicating which OpenMP thread of the dgemm runs on what core.
Let me know if this helped to push the performance.
Cheers,
-michael
Dr.-Ing. Michael Klemm
Senior Application Engineer
Software and Services Group
Developer Relations Division
Phone +49 89 9914 2340
Cell +49 174 2417583
From: hhuuggoo [mailto:[email protected]]
Sent: Wednesday, August 12, 2015 10:03 PM
To: 01org/pyMIC
Subject: [pyMIC] pyMIC dgemm performance? (#6)
I'm getting around 100 GFLOPS using the dgemm.py example for 4096x4096 matrices vs ~300 GFLOPS reported in http://www.dlr.de/sc/Portaldata/15/Resources/dokumente/pyhpc2014/submissions/pyhpc2014_submission_8.pdf.
any ideas on why?
Thanks
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6.
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
from pymic.
I'm using a Phi 31S1P. I haven't configured any settings other than the env vars you prescribed - do you know what settings were used in that paper, and which env vars to set?
thanks
from pymic.
Hi,
An alternative method to measure performance of Xeon Phi cards is to use the micperf packages which is included in MPSS. As described in this thread https://software.intel.com/en-us/forums/topic/498633 to install micperf run from the directory where you untarred the MPSS tar ball:
$ sudo yum install perf/micperf*.rpm
$ export PYTHONPATH=/usr/src/micperf/micp:${PYTHONPATH}
$ export PATH=/usr/src/micperf/micp/micp/scripts:${PATH}
Then make sure compilervars.sh (Composer 2013 you can get the distributable version from https://software.intel.com/en-us/articles/redistributable-libraries-for-the-intel-c-and-fortran-composer-xe-2013-sp1-for-linux) was sourced and to run DGEMM:
$ micprun -k dgemm -c optimal # -c optimal tells micperf to use the optimal parameters for DGEMM
if you only interested in the environment variables micperf sets before executing DGEMM, you can look at the mipcerf dgemm.py source code (/usr/src/micperf/micp-/micp/kernels/dgemm.py) :
'MIC_BUFFERSIZE':'256M',
'MKL_MIC_ENABLE':'1',
'MKL_MIC_DISABLE_HOST_FALLBACK':'1',
'LD_LIBRARY_PATH': <PATH >
'MIC_LD_LIBRARY_PATH':self.mic_ld_library_path(),
'MIC_ENV_PREFIX':'MIC',
'MIC_OMP_NUM_THREADS':str(numThreads),
'KMP_AFFINITY':'compact,1,0',
'MIC_KMP_AFFINITY':'explicit,granularity=fine,proclist=[1-' + str(numThreads) + ':1]',
'MIC_USE_2MB_BUFFERS':'16K',
'MKL_MIC_MAX_MEMORY':maxMemory + 'G'
Hope this helps,
Luis
Thanks
from pymic.
Related Issues (8)
- compilation for MIC does not pick up the correct libraries openMP HOT 3
- Using vtune with pymic. HOT 1
- Throw exception when exceeding supported no. of kernel args
- Can not load library compiled with mkl HOT 5
- Cypthon Offload Support HOT 2
- pyMIC + mlpack HOT 17
- A problem occured when reading .nii.gz HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymic.