- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am getting the following remark while compiling.
remark #7867: This directive is misplaced or not supported on this platform.
!dir$ assume_aligned pnm : 64
Here pnm is an array of dimensions (16,27)
Intel compiler is latest.
Please suggest what is wrong and what to do?
Thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By "latest", do you mean V16.0 ?
The "assume_aligned" directive is only allowed to reference dummy arguments.
What is the declaration for your array pnm?
If this is a local array or one declared in a module, and you want to force/enforce a certain alignment, you can use
!dir$ align : 64 :: pnm
--Lorri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Lorry,
Actually I have V 15.2.
The array is like this -
real(kind=8), intent(in) :: pnm(16,27) ,ie, an intent(in) variable. Its been sent from some other module.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
!dir$ assume_aligned must be placed in the executable code, close above the first loop or assignment where you want it visible. I haven't seen it used on other than a single subscripted variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tim is correct. The documentation doesn't explain that, so I have filed an issue for it to be updated. The same applies also to the ASSUME directive.
Placing the directives in between the declaration and executable sections is also OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay. I'll check with the suggestions.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Its working. Thanks.

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