[gem5-users] Re: can't run riscv simulation with any CPU model except Atomic
After 2 hours, message appear in m5term. My CPU is xeon e5 2687w v3, I think the boot time is too long, are there any way to accelerate it? ---Original--- From: "Jason Lowe-Power via gem5-users"___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: Gem5 GCN3_X86
Hi Kazi, Trying to answer your questions: 1. I am not aware of -d not working -- as of yesterday my students and I were able to use it (with head of develop, or something close to it). How are you attempting to use it on the command line? 2. I am not sure about the -mem-type flag (maybe Matt P., CC'd, knows better), but in an APU model like you seem to be looking at, the CPU and GPU memory are one and the same. So there isn't a different CPU and GPU memory if you are using an APU. Matt P might have better information on how to do this for a dGPU model, which we support in the VEGA_X86 model. 3. Right now, the GPU support in the public gem5 and its VIPER Ruby coherence protocol only allow the protocols available in Ruby (LRU, TreePLRU) to be picked. I believe there is also not a command line flag to chose them, so you'd need to edit the appropriate Python file (e.g., https://gem5.googlesource.com/public/gem5/+/refs/heads/develop/configs/ruby/GPU_VIPER.py#235) to pick the policy you want. However, some of the students working with me has updated Ruby and Classic's replacement policy support such that you can now pick all the other Classic replacement policies in Ruby protocols too (originally started here: https://gem5-review.googlesource.com/c/public/gem5/+/20879, and subsequent added to here: https://gem5-review.googlesource.com/q/owner:ji...@wisc.edu.test-google-a.com). We have some patches internally that allow users to specify replacement policies for the different GPU caching levels (as part of the work described here: https://www.gem5.org/assets/files/workshop-isca-2023/slides/analyzing-the-benefits-of-more-complex-cache.pdf), but we have not pushed them yet to the public code as we're trying to debug the issues highlighted in slides 19-23 of that presentation. We can push the patches publicly now if that would help, but there would be some caveat emptor there since the source of those bugs is unknown. 4. I am assuming you are referring to the parameters eventually used in places like this: https://gem5.googlesource.com/public/gem5/+/refs/heads/develop/configs/ruby/GPU_VIPER.py#142? If so, tcp_size is the size per instance of the L1D$ (currently per CU in the GPU implementation) and tcc_size is the size of the shared GPU L2. I am not sure if you are seeing some other parameters somewhere? 5. Matt P might have better information on this, but from briefly looking at the stats output, my guess is the waveLevelParallelism stats are the ones that might provide this information. Hope this helps, Matt On Wed, Aug 23, 2023 at 11:19 AM Kazi Asifuzzaman via gem5-users < gem5-users@gem5.org> wrote: > Hello, > > I am exploring the usage of the Gem5-GPU model GCN3_X86 (version > 22.1.0.0). I have the following queries/questions if you could kindly > clarify: > > 1. In previous versions of Gem5 we could use --outdir or -d option to > redirect the output to a specific directory. That appears to be not > supported in the version specified above (please correct me if I am wrong). > Is there any other way to redirect simulation outputs to specific > directories other than m5out? Otherwise, is there any other way to run > multiple instances of gem5, ensuring that the stats.txt of one application > is not overwritten by other instances running at the same time and saving > the output in the same directory (m5out). > > 2. For GCN3_X86, I assume -mem-type defines available memory models for > CPU/Host memory. By the default settings, does this work as a "Unified > Memory" ? If not, how to define the memory type for the GPU (global > memory), if it is different from CPU main memory? > > 3. --list-rp-types lists the available replacement policies, but what is > the option to select one of those? > > 4. -n defines the number of CPUs or cores, L1d_size and L2_size should be > the size per core or per CPU? > > 5. Are there any output parameters that report % of resources (e.g. CUs) > used by the application, or quantify memory contention in unified memory? > > Thanks, > > *K. Zaman* > ___ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Gem5 GCN3_X86
Hello, I am exploring the usage of the Gem5-GPU model GCN3_X86 (version 22.1.0.0). I have the following queries/questions if you could kindly clarify: 1. In previous versions of Gem5 we could use --outdir or -d option to redirect the output to a specific directory. That appears to be not supported in the version specified above (please correct me if I am wrong). Is there any other way to redirect simulation outputs to specific directories other than m5out? Otherwise, is there any other way to run multiple instances of gem5, ensuring that the stats.txt of one application is not overwritten by other instances running at the same time and saving the output in the same directory (m5out). 2. For GCN3_X86, I assume -mem-type defines available memory models for CPU/Host memory. By the default settings, does this work as a "Unified Memory" ? If not, how to define the memory type for the GPU (global memory), if it is different from CPU main memory? 3. --list-rp-types lists the available replacement policies, but what is the option to select one of those? 4. -n defines the number of CPUs or cores, L1d_size and L2_size should be the size per core or per CPU? 5. Are there any output parameters that report % of resources (e.g. CUs) used by the application, or quantify memory contention in unified memory? Thanks, *K. Zaman* ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: can't run riscv simulation with any CPU model except Atomic
Hello, These scripts are tested nightly, so they should be working. How long did you wait for the terminal output? It can take 15-30 minutes before you see any output. Cheers, Jason On Wed, Aug 23, 2023 at 5:00 AM oe-fans via gem5-users wrote: > hi, all > > I built gem5 v23.0.1.0, I can run configs/example/lupv/run_lupv.py with > atomic CPU model successful. But when I run it with TIMING model, there is > nothing appear in m5term. > I try configs/example/gem5_library/riscv-fs.py or riscvmatched-fs.py, > neither of them can boot. > > What's wrong with my gem5 build? Are there anything I missing? > > > ___ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] can't run riscv simulation with any CPU model except Atomic
hi, all I built gem5 v23.0.1.0, I can run configs/example/lupv/run_lupv.py with atomic CPU model successful. But when I run it with TIMING model, there is nothing appear in m5term. I try configs/example/gem5_library/riscv-fs.py or riscvmatched-fs.py, neither of them can boot. What's wrong with my gem5 build? Are there anything I missing?___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: Get gem5 output directory from python config
Hi, It was exactly what I was looking for. Thank you for the quick answer :) Kind Regards, Caio Vieira On 23.08.23 11:38, Giacomo Travaglini wrote: Hi, m5.options.outdir is probably what you are looking for. Kind Regards Giacomo *From: *Caio Vieira via gem5-users *Date: *Wednesday, 23 August 2023 at 10:24 *To: *The gem5 Users mailing list *Cc: *Caio Vieira *Subject: *[gem5-users] Get gem5 output directory from python config Hi, I would like to know how to get the gem5 output directory (flags --outdir=DIR, -d=DIR in gem5's binary) from the python config script. If this feature is not implemented, then it would be nice to make it available by creating a function in src/gem5/runtime.py and allow the user to probe this like get_runtime_isa(). Reason: My goal is to create a better communication between host and guest by using m5's writefile. However, I've noticed that paths given to writefile starts from gem5's output directory. I know that I can work around this issue by creating an argument in my python script and give it the same value I pass to gem5 --outdir. Cheers, Caio Vieira ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: Get gem5 output directory from python config
Hi, m5.options.outdir is probably what you are looking for. Kind Regards Giacomo From: Caio Vieira via gem5-users Date: Wednesday, 23 August 2023 at 10:24 To: The gem5 Users mailing list Cc: Caio Vieira Subject: [gem5-users] Get gem5 output directory from python config Hi, I would like to know how to get the gem5 output directory (flags --outdir=DIR, -d=DIR in gem5's binary) from the python config script. If this feature is not implemented, then it would be nice to make it available by creating a function in src/gem5/runtime.py and allow the user to probe this like get_runtime_isa(). Reason: My goal is to create a better communication between host and guest by using m5's writefile. However, I've noticed that paths given to writefile starts from gem5's output directory. I know that I can work around this issue by creating an argument in my python script and give it the same value I pass to gem5 --outdir. Cheers, Caio Vieira ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Get gem5 output directory from python config
Hi, I would like to know how to get the gem5 output directory (flags --outdir=DIR, -d=DIR in gem5's binary) from the python config script. If this feature is not implemented, then it would be nice to make it available by creating a function in src/gem5/runtime.py and allow the user to probe this like get_runtime_isa(). Reason: My goal is to create a better communication between host and guest by using m5's writefile. However, I've noticed that paths given to writefile starts from gem5's output directory. I know that I can work around this issue by creating an argument in my python script and give it the same value I pass to gem5 --outdir. Cheers, Caio Vieira ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org