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

make Error in the folder benchmarks/rodinia #28

Open
Zst0514 opened this issue Dec 8, 2023 · 4 comments
Open

make Error in the folder benchmarks/rodinia #28

Zst0514 opened this issue Dec 8, 2023 · 4 comments

Comments

@Zst0514
Copy link

Zst0514 commented Dec 8, 2023

~/Ramulator-pim/zsim-ramulator/benchmarks/rodinia
$ make
g++-9 -g -fopenmp -O2 bfs.cpp -o bfs
bfs.cpp: In function ‘void BFSGraph(int, char**)’:
bfs.cpp:67:8: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
67 | fscanf(fp,"%d",&no_of_nodes);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
bfs.cpp:79:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
79 | fscanf(fp,"%d %d",&start,&edgeno);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
bfs.cpp:88:8: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
88 | fscanf(fp,"%d",&source);
| ~~~~~~^~~~~~~~~~~~~~~~~
bfs.cpp:95:8: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
95 | fscanf(fp,"%d",&edge_list_size);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
bfs.cpp:101:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
101 | fscanf(fp,"%d",&id);
| ~~~~~~^~~~~~~~~~~~~
bfs.cpp:102:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
102 | fscanf(fp,"%d",&cost);
| ~~~~~~^~~~~~~~~~~~~~~
bfs.cpp: In function ‘BFSGraph(int, char**) [clone ._omp_fn.3] [clone .hsa.0]’:
cc1plus: warning: could not emit HSAIL for the function [-Whsa]
In file included from bfs.cpp:7:
../../misc/hooks/zsim_hooks.h:8:67: note: support for HSA does not implement gimple statement gimple_asm
8 | #define COMPILER_BARRIER() { asm volatile("" ::: "memory");}
| ^
bfs.cpp: In function ‘BFSGraph(int, char**) [clone ._omp_fn.2] [clone .hsa.0]’:
cc1plus: warning: could not emit HSAIL for the function [-Whsa]
cc1plus: note: support for HSA does not implement non-gridified OpenMP parallel constructs.
bfs.cpp: In function ‘BFSGraph(int, char**) [clone ._omp_fn.1] [clone .hsa.0]’:
cc1plus: warning: could not emit HSAIL for the function [-Whsa]
../../misc/hooks/zsim_hooks.h:8:67: note: support for HSA does not implement gimple statement gimple_asm
8 | #define COMPILER_BARRIER() { asm volatile("" ::: "memory");}
| ^
bfs.cpp: In function ‘BFSGraph(int, char**) [clone ._omp_fn.0] [clone .hsa.0]’:
cc1plus: warning: could not emit HSAIL for the function [-Whsa]
cc1plus: note: support for HSA does not implement non-gridified OpenMP parallel constructs.
lto-wrapper: fatal error: could not find accel/nvptx-none/mkoffload in /usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/ (consider using ‘-B’)

compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [Makefile:10: bfs] Error 1

When I execute the make command in the zsim_ramulator/benchmarks/rodinia/ directory, I encounter the above error. How can I resolve this issue? Thank you very much for your help.

@adviyer
Copy link

adviyer commented Mar 13, 2024

Hey did you figure this out? We are facing the same issue

@wqd008
Copy link

wqd008 commented Mar 15, 2024

It seems that the version of gcc is too new.

@adviyer
Copy link

adviyer commented Mar 16, 2024

Thanks that fixed it for us!

@wqd008
Copy link

wqd008 commented Mar 17, 2024

Thanks that fixed it for us!

You're welcome. Unfortunately there is still a Unsolvable BUG called "Unknown sub-function for SYS_arch_prctl" when you run the benchmark "rodinia". This BUG comes from the incompatibility between Pin 2.X and the newer version of Linux. Someone reported this bug in the closed issue and said the bug can be fixed on Ubuntu 18.04. I tried but it failed. Therefore, I recommend to use docker: https://hub.docker.com/r/sidsahay/ramulator-pim, which is not offered officially but truly works well. Hope it helps.

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