- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I met a problem when I use eoshift in subroutine.
Here's my code:
===========================================
Program tryeoshfit
implicit none
integer, parameter :: N = 200
real(kind=8), dimension(-N:N,-N:N) ::AA, BB, CC
AA = 5.0
print*,1
BB = eoshift(AA,1,dim=1) + eoshift(AA,-1,dim=1)
print*,2
call func_eoshift(N,AA,CC)
print*,5
ENd program
subroutine func_eoshift(N,AA,CC)
implicit none
integer, intent(in) :: N
real(kind=8),dimension(-N:N,-N:N),intent(in) :: AA
real(kind=8),dimension(-N:N,-N:N),intent(out) :: CC
print*, 3
CC = eoshift(AA,1,dim=1) + eoshift(AA,-1,dim=1)
print*, 4
end subroutine
==============================================
Then I complied this code with ifort and run,
==============
ifort tryeoshift.f90 -o tryeo -static-libcxa
./tryeo
==============
And I get the following message,
==============
1
2
3
Segmentation fault
===============
Any suggestions on this problem? I'm a new user to ifort and linux. I'm working on a Debian operation system. Do I need to provide any other infomation?
Thanks.
Best,
Alex
I met a problem when I use eoshift in subroutine.
Here's my code:
===========================================
Program tryeoshfit
implicit none
integer, parameter :: N = 200
real(kind=8), dimension(-N:N,-N:N) ::AA, BB, CC
AA = 5.0
print*,1
BB = eoshift(AA,1,dim=1) + eoshift(AA,-1,dim=1)
print*,2
call func_eoshift(N,AA,CC)
print*,5
ENd program
subroutine func_eoshift(N,AA,CC)
implicit none
integer, intent(in) :: N
real(kind=8),dimension(-N:N,-N:N),intent(in) :: AA
real(kind=8),dimension(-N:N,-N:N),intent(out) :: CC
print*, 3
CC = eoshift(AA,1,dim=1) + eoshift(AA,-1,dim=1)
print*, 4
end subroutine
==============================================
Then I complied this code with ifort and run,
==============
ifort tryeoshift.f90 -o tryeo -static-libcxa
./tryeo
==============
And I get the following message,
==============
1
2
3
Segmentation fault
===============
Any suggestions on this problem? I'm a new user to ifort and linux. I'm working on a Debian operation system. Do I need to provide any other infomation?
Thanks.
Best,
Alex
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Its not reproducible with the number of compilers that I tested. What version of ifort (add -V option) are you using?
Feels like this is a shell stack limit induced fault. Refer to Cause #2 in the Knowledge Base article (here)for information about increasing the shell stack limit.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Its not reproducible with the number of compilers that I tested. What version of ifort (add -V option) are you using?
Feels like this is a shell stack limit induced fault. Refer to Cause #2 in the Knowledge Base article (here)for information about increasing the shell stack limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Kevin Davis (Intel)
Its not reproducible with the number of compilers that I tested. What version of ifort (add -V option) are you using?
Feels like this is a shell stack limit induced fault. Refer to Cause #2 in the Knowledge Base article (here)for information about increasing the shell stack limit.
Yes. You're right. The problem is solved by command " unlimit stacksize ".
Great thanks.
Best,
Alex
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