Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./stream_f.exe 执行报错 #5

Closed
Venland30 opened this issue Jul 6, 2022 · 7 comments
Closed

./stream_f.exe 执行报错 #5

Venland30 opened this issue Jul 6, 2022 · 7 comments

Comments

@Venland30
Copy link

image

@Venland30
Copy link
Author

还想问下,这里生成的文件可以针对平台适配吗?在linux平台不在叫xx.exe文件

@jeffhammond
Copy link
Owner

  1. I'm only going to respond to bug reports submitted in text format. Screen shots are not valid bug reports.
  2. Compile with -fmax-stack-var-size=1024 (or some other small-ish number) or run with ulimit -s unlimited.

@jeffhammond
Copy link
Owner

I also want to ask, can the files generated here be adapted to the platform? The xx.exe file is no longer called on the linux platform

Linux doesn't care about the file suffix, so .exe is fine. That it complies with the Windows convention is irrelevant.

@Venland30
Copy link
Author

  1. 我只会回复以文本格式提交的错误报告。屏幕截图不是有效的错误报告。
  2. -fmax-stack-var-size=1024使用(或其他一些小数字)编译或使用ulimit -s unlimited.

github git clone [email protected]:loong-C/STREAM.git
正克隆到 'STREAM'...
remote: Enumerating objects: 80, done.
remote: Counting objects: 100% (30/30), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 80 (delta 26), reused 23 (delta 23), pack-reused 50
接收对象中: 100% (80/80), 27.27 KiB | 27.27 MiB/s, 完成.
处理 delta 中: 100% (45/45), 完成.
➜ github cd STREAM
➜ STREAM git:(master) ls
HISTORY.txt LICENSE.txt Makefile mysecond.c README stream.c stream.f
➜ STREAM git:(master) make
gcc -O2 -fopenmp -c -o mysecond.o mysecond.c
gcc -O2 -fopenmp -c mysecond.c
gfortran -O2 -fopenmp -c stream.f
gfortran -O2 -fopenmp stream.o mysecond.o -o stream_f.exe
gcc -O2 -fopenmp stream.c -o stream_c.exe
➜ STREAM git:(master) ./stream_f.exe
[1] 24426 segmentation fault ./stream_f.exe
➜ STREAM git:(master) ps -ef | grep 24426
ut00449+ 24602 27160 0 17:39 pts/0 00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox 24426

@Venland30
Copy link
Author

I also want to ask, can the files generated here be adapted to the platform? The xx.exe file is no longer called on the linux platform

Linux doesn't care about the file suffix, so .exe is fine. That it complies with the Windows convention is irrelevant.

OK

@jeffhammond
Copy link
Owner

You appear to have ignored this:

Compile with -fmax-stack-var-size=1024 (or some other small-ish number) or run with ulimit -s unlimited.

Please try again.

@scivision
Copy link

this is fixed by #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants