Giter Site home page Giter Site logo

pyMIC dgemm performance? about pymic HOT 3 CLOSED

hhuuggoo avatar hhuuggoo commented on August 27, 2024
pyMIC dgemm performance?

from pymic.

Comments (3)

mjklemm avatar mjklemm commented on August 27, 2024

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.

hhuuggoo avatar hhuuggoo commented on August 27, 2024

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.

luisfeli avatar luisfeli commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.