-
Notifications
You must be signed in to change notification settings - Fork 508
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[1]: *** [Makefile:76: depend] Error 127 & make: *** [Makefile:207: cuda-sim] Error 2 in RHEL 9 #283
Comments
It seems like the And you can check the command in
and, add a setence Another possible reason is that you don't correctly use the script, cause the path |
It returns nothing, if I just used:
Just obfuscation on my part of the path. |
You can also edit |
Just tried this and I get:
|
Sorry, there is some mistake, the code should be Even if your env can check the right gcc version during this stage, it will occur compilation errors. So to be on the safe side, you can lower the gcc version to gcc-5.3.0 or gcc-7.5.0. |
I tried both:
|
It's best to give me an account to connect to your machine remotely, and I'll locate the error. If your machine can connect remotely, you can send the account number to my email |
The gcc version detection code in |
Well it's now finding the version:
|
I rebuild the errors using gcc-11.3.1, and i have the same error:
This error occurs in the https://github.com/gpgpu-sim/gpgpu-sim_distribution/blob/90ec3399763d7c8512cfe7dc193473086c38ca38/src/cuda-sim/Makefile#L76C1-L76C1 :
Makedepend just build dependencies on some cpp files under cuda-sim. After I comment out this line, the errors have been skipped but new errors occured:
The reason is that the version of gcc-11.3.1 is too high to compile the code. So lower your gcc version. |
It is not the gcc version issue. The solution is patching the make file. Replace with ifeq ($(shell uname),Linux)
cat $(OUTPUT_DIR)/ptx.tab.h | grep "=" | sed 's/^[ ]\+//' | sed 's/[=,]//g' | sed 's/\([_A-Z1-9]\+\)[ ]\+\([0-9]\+\)/\1 \1/' | sed 's/"/\\"/g' | sed 's/^/DEF(/' | sed 's/ /,"/' | sed 's/$$/")/' > $(OUTPUT_DIR)/ptx_parser_decode.def
else
cat $(OUTPUT_DIR)/ptx.tab.h | grep "=" | sed -E 's/^ +//' | sed 's/[=,]//g' | sed -E 's/([_A-Z1-9]+).*/\1 \1/' | sed 's/"/\\"/g' |sed 's/^/DEF(/' | sed 's/ /,"/' | sed 's/$$/")/' > $(OUTPUT_DIR)/ptx_parser_decode.def
endif This change simply added the escape to the quote symbol. |
No luck after making the change, GCC version still not being detected correctly, still showing as
I tried to hard code 11.2.1 in the
Then a subsequent make has this:
these exist:
|
https://github.com/wuye9036/gpgpu-sim/tree/wuye/mask_out_warnings You can try my branch. Smoked benchmark from accel-sim on GCC-11.4 & CUDA 11.8. |
I think that might be caused by missing |
I installed xorg-x11-utils (Centos/RHEL equivalent to xutils-dev), same error and I used your branch. Still not parsing the version of GCC, notice the
|
Hmmm you may forget the code that you have cloned and try this fork: [email protected]:accel-sim/gpgpu-sim_distribution.git Then change the branch to dev and build it. This fork contains lots of fixes and forks. |
I'm not following. Can you provide the commands to do this? |
Please ensure that Once this is done, try building it again. |
Still doesn't put the path with the correct GCC version: |
it doesn't affect the use of gpgpu-sim. If you wanna to fix it, you can modify the gpgpu-sim/setup_environment:L47 CC_VERSION=`gcc --version | head -1 | awk '{for(i=1;i<=NF;i++){ if(match($i,/^[0-9]\.[0-9]\.[0-9]$/)) {print $i; exit 0}}}'` to CC_VERSION=`gcc --version | head -1 | awk '{for(i=1;i<=NF;i++){ if(match($i,/^[0-9]+\.[0-9]\.[0-9]$/)) {print $i; exit 0}}}'` And apply this changes into |
I thought I had all of the dependencies but perhaps not. Pardon the path obfuscation. From what I found
xorg-x11-utils
is the RHEL/CentOS equivalent forxutils
.RHEL 9, cuda11.8/toolkit/11.8.0 in a Bright HPC cluster.
The text was updated successfully, but these errors were encountered: