[gem5-users] Error with syscall 318 for gem5, when executing with a multi agent reinforcement learning algorithm

2021-10-18 Thread gogineni kailashnath via gem5-users
I'm trying to execute a python algorithm (*https://github.com/shariqiqbal2810/maddpg-pytorch *) on gem5 in se mode in X86. But, at first I got an *error syscall 318 out of range*. So, I tried to import the get random function into the

[gem5-users] Gem5 not working when executing a python script (fatal: Syscall 318 out of range is the error)

2021-08-11 Thread gogineni kailashnath via gem5-users
Hello, I'm trying to execute a simple python script and pass command line parameters to just do simple addition of numbers in gem5 Command: sudo ./build/X86/gem5.opt configs/example/se.py --cmd /usr/bin/python3 --options "sum.py 3 4" sum.py source code: import sys x=int(sys.argv[1])

[gem5-users] gem5 syscall emulation X86 reinforcement learning (maddpg algorithm) fails with "fatal: Syscall 318 out of range Memory Usage: 207920 KBytes"

2021-08-10 Thread gogineni kailashnath via gem5-users
I am having the following error in gem5. I've tested it on X86 only and it causes fatal error. Command: sudo ./build/X86/gem5.opt configs/example/se.py --cmd /usr/bin/python3.5 --options "train.py --scenario simple" --caches --l2cache --cpu-type=TimingSimpleCPU --mem-type=DDR3_1600_8x8

[gem5-users] How to port a reinforcement learning algorithm (maddpg) on top of gem5?

2021-07-22 Thread gogineni kailashnath via gem5-users
I'm trying to port maddpg on top of gem5 Here's my process: First I've downloaded the maddpg from open ai: https://github.com/openai/maddpg (I've also installed all the dependencies for maddpg on the multi-particle environment) In the next step, I used the following command to train the maddpg o

[gem5-users] Re: How to redirect the fopen to open a different file instead of specifed filename in the program binary given as input to gem5 simulator in SE mode

2021-07-21 Thread gogineni kailashnath via gem5-users
Hello mohit, But my problem is we shouldn't modify the program binary, instead when the simulator process the binary, when it triggers fopen syscall, it should should open a different file instead of already specified one. Here, as this is in the hardware level, I guess we can't see the filename

[gem5-users] How to redirect the fopen to open a different file instead of specifed filename in the program binary given as input to gem5 simulator in SE mode

2021-07-21 Thread gogineni kailashnath via gem5-users
Hello, I have a C code, which creates a file *file.txt* and prints the hello world content in the file. #include int main () { FILE *fp; char str[] = "Hello world"; fp = fopen( "file.txt" , "w" ); fwrite(str , 1 , sizeof(str) , fp ); fclose(fp);

[gem5-users] Re: How to redirect the fopen to open a different file instead of specifed filename in the program binary given as input to gem5 simulator in SE mode

2021-07-21 Thread gogineni kailashnath via gem5-users
On Wed, Jul 21, 2021, 11:48 AM gogineni kailashnath < gkailashnath1...@gmail.com> wrote: > Hello, > > I have a C code, which creates a file *file.txt* and prints the hello > world content in the file. > > #include > > int main () { >FILE *fp; >char str[] = "Hello world"; > >