Jump to HeaderJump to Main ContentJump to Footer
Michigan State University
Michigan State University
ICER Institute for Cyber-Enabled Research
  • HPCC Status
  • ICER Docs

ICER Institute for Cyber-Enabled Research

  • About
    • Overview
    • News
    • Affiliations
    • Employment Opportunities
    • FAQ
    • Newsletters
    • 20th Anniversary
    Supercomputer hardware with blue and green lights and many wires connect it together.

    View and download photos of ICER's hardware.

    Photo Gallery
  • |
  • System Status
    • Overview
    • HPCC Service Status
    • ICER Status Dashboard
  • |
  • For HPCC Users
    • Overview
    • Getting Started
    • HPCC System Info
    • HPCC User Documentation
    • Buy-In Options
    • Topic of the Month
  • |
  • Research Services
    • Overview
    • Research Highlights
    • Publications
    • Citing ICER
    • Grant and Research Assistance
    • Academic Research Consulting Services
    • Opportunities and Communities
  • |
  • Training and Education
    • Overview
    • Webinars and Seminars
    • Asynchronous Tutorials
    • Classroom Support
  • |
  • Contact
    • Overview
    • Directory
ICER Institute for Cyber-Enabled Research
  • About
  • System Status
  • For HPCC Users
  • Research Services
  • Training and Education
  • Contact

< About

  • Overview
  • News
  • Affiliations
  • Employment Opportunities
  • FAQ
  • Newsletters
  • 20th Anniversary
Supercomputer hardware with blue and green lights and many wires connect it together.

View and download photos of ICER's hardware.

Photo Gallery

< System Status

  • Overview
  • HPCC Service Status
  • ICER Status Dashboard

< For HPCC Users

  • Overview
  • Getting Started
  • HPCC System Info
  • HPCC User Documentation
  • Buy-In Options
  • Topic of the Month

< Research Services

  • Overview
  • Research Highlights
  • Publications
  • Citing ICER
  • Grant and Research Assistance
  • Academic Research Consulting Services
  • Opportunities and Communities

< Training and Education

  • Overview
  • Webinars and Seminars
  • Asynchronous Tutorials
  • Classroom Support

< Contact

  • Overview
  • Directory
  • HPCC Status
  • ICER Docs
ICER > For HPCC Users > Topic of the Month >

MATLAB 2021a Is Installed and Ready For Use

MATLAB 2021a Is Installed and Ready For Use

As many users may have noticed, the MATLAB/2021a module has been installed on HPCC and is ready for use. Users can check the release note for details of changes at this link. 

Among the changes and updates in the new version, there is one thing I would like to bring to the attention of Matlab users on HPCC: the performance improvements on some basic sparse matrix computation. I tested the examples provided by the release note on HPCC and would like to share the results here. 

For the testing, I used the same code and six cores included in the release note. I ran the code in a job to control the number of cores used on Intel16, Intel18, and AMD20 types of compute nodes. The execution time was measured in seconds by averaging five runs. The same code was run using version 2020b and 2021a for the comparison. I have included the code as well as the timing information in the following.

  1. Sparse matrix multiplication:
    function timingSparseMult
    rng default
    A = sprand(1e5,1e5,0.0002);
    B = sprand(1e5,1e5,0.0002);
    tic
    C = A*B;
    toc
    end

The approximate execution times in seconds are:

 Intel16Intel18AMD20
2020b2.164951.745831.79784
2021a0.4574790.4106160.722299
  1. Solving linear systems:
    function timingSparseBackslashMultRHS
    rng default
    A = sprand(1e4,1e4,0.0003) + speye(1e4);
    B = sprand(1e4,100,0.002);
    dA = decomposition(A);
    tic
    x = dA\B;
    toc
    end

The approximate execution times in seconds are:

 Intel16Intel18AMD20
2020b1.424371.531131.6342
2021a0.2771060.277890.311213

From the timing data, both examples show that version 2021a is about five times faster than version 2020b. There are a few other matrix operations which have performance improvements in this latest version. These functions are used extensively in MATLAB-based software, so the performance improvement could have a large impact on such software. I would like to encourage our users to try this new version and let us know how it affects your work. 

Xiaoge Wang
Research Consultant
ICER
 

  • Documentation Homepage
  • HPCC Service Status
  • ICER Newsletter

Contact us

Contact Form Link

Address

Biomedical & Physical Sciences Building 567 Wilson Road, Room 1440 East Lansing, Michigan 48824-1226

Follow Us

  • Visit our Facebook page
  • Visit our page on X
  • Visit our Instagram page
  • Visit our LinkedIn page
  • Visit our YouTube page

If you're having accessibility issues, please let us know.

  • Contact Information|
  • Site Map|
  • Privacy Statement|
  • Site Accessibility|
  • Call MSU: (517) 355-1855|
  • Visit: msu.edu|
  • Notice of Nondiscrimination|

SPARTANS WILL|© Michigan State University|