- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Intel developers,
i'm trying to do cache alignement over struct array defined as is:
[cpp]struct complex_32 { float32 r; float32 i; }; typedef struct complex_32 complex32; static complex32 **traces; traces = (complex32 **)malloc( *num_elems * sizeof(complex32 *)); for (i = 0; i < *num_elems; i++) traces = (complex32 *)malloc( *num_samples * sizeof(complex32));[/cpp]
i want to align for 16 bytes. Which is the right syntax using __declspec(align(16))) ?
Actually, using _mm_malloc instead of malloc, the code crashes on forst _mm_load_ps intrinsic.
Thanks in advance for the help.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi unrue,
This forum is dedicated to MPI, Clusters, HPC and so on. Usually engineers who can answer your question visit other forums.
I hope that you got an answer in other thread, so I'll not move it.
Regards!
Dmitry
This forum is dedicated to MPI, Clusters, HPC and so on. Usually engineers who can answer your question visit other forums.
I hope that you got an answer in other thread, so I'll not move it.
Regards!
Dmitry
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