Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library
- How to using SpMV 2 Analysis Routines

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Tianxiong_Lu

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

09-14-2015
08:24 AM

36 Views

How to using SpMV 2 Analysis Routines

Hi all,

I found there is a new group of routines about sparse matrix in version 11.3. It is said in manual：SpMV 2 API divides into two stages, analysis and execution.

Now，I have some questions about analysis routines:

1. Is it necessary before run execution routines?

2. How to use them correctly? I found that only the mkl_sparse_optimize routine run before executions in example sparse_csr.c. And in another example solver_cg.c, there are some mkl_sparse_set_xx_hint routines before the mkl_sparse_optimize(). I can not get any detail message about this in manual.

3. The matrix_descr is defined explicit in user code. What happens if it is not defined, or the definition of matrix_descr attribute is error?

Thank you!

Tianxiong Lu

Link Copied

2 Replies

Alexander_K_Intel2

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

09-14-2015
12:00 PM

36 Views

Hi,

mkl_sparse_set_xx_hint allow function mkl_optimize to prepare data exactly for required functionality. If you have not call mkl optimize or call execute function with correspond hint set performance of execution function can be less than otherwise.

Thanks,

Alex

Tianxiong_Lu

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

09-14-2015
06:24 PM

36 Views

Ok, thank you for your information.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.