Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I am trying to add benchmarks to mgpusim because I need benchmarks that generate big mem traces and work well with multiple gpus. I am trying to compile new benchmarks from rodinia but I am running through error I don't know how to solve. I am using rocm 4.0.1 in ubuntu 20.04 and clang-ocl. I am getting /usr/include/stdio.h:137:14: error: extern variable must reside in constant address space and other errors related to this two files.

Has anyone some advice to solve this problem or how to compile things to add a benchmark?

I am using the option -mcpu=gfx803, because as far I know it to obtain the hsaco of the architecture that simulate mgpusim.

You must be logged in to vote

Replies: 1 comment · 4 replies

Comment options

It looks like a ROCm compiler issue. Can you try ROCm 3.9 instead?

You must be logged in to vote
4 replies
@JunjoFor
Comment options

I am using ROCm docker. I tried with 3.9 but I get he same error. I think it might be because some issues with libc (?). Because with the docker clean i get this error at first.

/usr/include/stdio.h:27:10: fatal error: 'bits/libc-header-start.h' file not found #include <bits/libc-header-start.h>
Installing gcc-multilib solve this issue but then appear the same issues than before. I tried Ubuntu 18.04 but is the same.

@syifan
Comment options

Yes. Using Docker is recommended. My intuition is that there is a compatibility issue between the system environment and the benchmark. Are there any other benchmark you can try compiling. Just to make sure there is no problem in the compilation environment?

@JunjoFor
Comment options

I tried now with parboil, I have the same issue. The compiler couldn't find a libc header, I also tried installing gcc-multilib and then I had the same compiling errors. I guess it's an liking error in the docker but I have no idea how to solve it or who I should ask.

@syifan
Comment options

What about writing a hello work C/C++ program without HIP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.