Ok so I forgot to mention that the gem5-resources repository ( https://gem5.googlesource.com/public/gem5-resources/) doesn't have the makefile in the main folder, it's actually in gem5-resources>>src>>square, so I can't just run the command (docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square <image_name> make square) directly or it just says ""make: *** No rule to make target 'square'. Stop.""
About square.out, I'm unable to make that too directly with gcc/g++ because of the error that I'm getting which is the same as when I run docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square <image_name> make square ""square.cpp:24:29: fatal error: hip/hip_runtime.h: No such file or directory compilation terminated."" I can't find the file myself too, I did look in the makefile folder (gem5-resources>>src>>square), I couldn't find the sources.mk file and so I couldn't find any $INCLUDE tag, so I couldn't understand where to look. Lastly, about docker files, I tried using the method you suggested with docker run -it <image-name> bash, let me know if there's a better method or any other options I should also be using. Also, about the --rm docker option, what exactly does that remove, the docker image I created/compiled with docker build -t <image-name> (approx 3.1GB) or just this instance of the image? because if it deletes the compiled image, then it would be really time consuming to recompile it everytime I need to test a change (eg-running make square multiple times). Also let me know if I'm using the terms image/container/instance correctly or not.
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s