- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[bash]
double csr_values = {5,1,2,8,3,5,9,4};
double x = {1,3,1,2};
int csr_j = {2,3,1,3,4,3,2,3};
int csr_i= {1,3,6,7,9};
double *y = (double *) malloc(4*sizeof(double));
int i;
for(i=0;i<4;i++)
y = 0.0;
int my_size = 4;
mkl_dcsrgemv("N", my_size, csr_values, csr_i, csr_j, x, y);[/bash]
I'm just getting started with MKL. I'm getting a segmentation fault when I execute the code
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The second argument should be &my_size. To catch such errors, use the provided prototypes.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The second argument should be &my_size. To catch such errors, use the provided prototypes.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page