[gem5-users] Re: How to run Python code with TensorFlow in Gem5 syscall emulation mode?

2020-10-23 Thread Jason Lowe-Power via gem5-users
Hi Hasan,

I agree with Abhishek. Something as complex as tensorflow is going to be
very difficult to get working in syscall emulation mode. Using full system
mode should work (though without things like GPU acceleration, of course).

Cheers,
Jason

On Fri, Oct 23, 2020 at 1:55 PM Abhishek Singh via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Hasan,
> I have been trying to run tensorflow on gem5, have you tried full system?
> I was able to run simple python code like hello on it.
> Let me know if it works
>
> On Fri, Oct 23, 2020 at 12:28 PM Hasan, S M Shamimul via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Hello,
>>
>> * I want to run cosmoGAN code inside Gem5. The cosmoGAN code is available
>> here (https://github.com/MustafaMustafa/cosmoGAN). The cosmoGAN code is
>> in Python language, which uses TensorFlow. To run some code inside the
>> Gem5, I need a binary file of my code. Hence, how can I run cosmoGAN Python
>> code in the Gem5 syscall emulation mode?
>>
>> * Earlier, I was interested to know how I can run a simple "Hello World"
>> code in Gem5 syscall emulation mode. Therefore, I posted the following
>> question in StackOverflow.
>>
>> StackOverflow Question Link:
>> ===
>>
>> https://stackoverflow.com/questions/6344/is-it-possible-to-run-python-code-in-gem5-syscall-emulation-mode
>>
>> In the StackOverflow answer, Ciro Santilli told me to implement syscalls.
>> I was getting an error for the "fchmod" syscall. Hence, I implemented it in
>> the following file (/gem5/src/arch/x86/linux/process.cc) like below.
>> However, it was not working for me. The Gem5 creates a large output file,
>> and after that, it terminates.
>>
>> Syscall Implementation:
>> ==
>> { 91, "fchmod", fchmodFunc },
>>
>> * Please let me know how I can run cosmoGAN Python code (with TensorFlow)
>> in the Gem5 syscall emulation mode?
>>
>> Thank you in advance.
>>
>> Sincerely,
>> S.M.Shamimul Hasan
>>
>>
>> ___
>> 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
>
> --
> Best Regards,
> Abhishek
> ___
> 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
___
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

[gem5-users] Re: How to run Python code with TensorFlow in Gem5 syscall emulation mode?

2020-10-23 Thread Abhishek Singh via gem5-users
Hi Hasan,
I have been trying to run tensorflow on gem5, have you tried full system?
I was able to run simple python code like hello on it.
Let me know if it works

On Fri, Oct 23, 2020 at 12:28 PM Hasan, S M Shamimul via gem5-users <
gem5-users@gem5.org> wrote:

> Hello,
>
> * I want to run cosmoGAN code inside Gem5. The cosmoGAN code is available
> here (https://github.com/MustafaMustafa/cosmoGAN). The cosmoGAN code is
> in Python language, which uses TensorFlow. To run some code inside the
> Gem5, I need a binary file of my code. Hence, how can I run cosmoGAN Python
> code in the Gem5 syscall emulation mode?
>
> * Earlier, I was interested to know how I can run a simple "Hello World"
> code in Gem5 syscall emulation mode. Therefore, I posted the following
> question in StackOverflow.
>
> StackOverflow Question Link:
> ===
>
> https://stackoverflow.com/questions/6344/is-it-possible-to-run-python-code-in-gem5-syscall-emulation-mode
>
> In the StackOverflow answer, Ciro Santilli told me to implement syscalls.
> I was getting an error for the "fchmod" syscall. Hence, I implemented it in
> the following file (/gem5/src/arch/x86/linux/process.cc) like below.
> However, it was not working for me. The Gem5 creates a large output file,
> and after that, it terminates.
>
> Syscall Implementation:
> ==
> { 91, "fchmod", fchmodFunc },
>
> * Please let me know how I can run cosmoGAN Python code (with TensorFlow)
> in the Gem5 syscall emulation mode?
>
> Thank you in advance.
>
> Sincerely,
> S.M.Shamimul Hasan
>
>
> ___
> 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

-- 
Best Regards,
Abhishek
___
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

[gem5-users] Error transition, event: Fwd_GETX state: I

2020-10-23 Thread 1154063264--- via gem5-users
Hello Everyone:
State I encountered Event Fwd_GETX  while testing the coherence  protocol. Is 
this wrong? I don’t know why it will  send Fwd_GETX or Fwd_GETS to the cache 
controller whose cache line is in Invalid state . Is it because L2 does not 
update the owner list or sharer list in time?

135:  839071: PerfectSwitch-8: Message: [RequestMsg: addr = [0x440, line 0x440] 
Type = GETX AccessMode = Supervisor Requestor = L1Cache-2 Destination = 
[NetDest (17) 0 0 0 0  - 0 0 0 0  - 1  -  - 0 0 0 0  -  -  -  -  -  -  -  -  -  
-  -  -  - ] MessageSize = Control 
159:  839084: PerfectSwitch-8: Message: [RequestMsg: addr = [0x440, line 0x440] 
Type = GETX AccessMode = User Requestor = L1Cache-2 Destination = [NetDest (17) 
0 0 0 0  - 0 0 0 1  - 0  -  - 0 0 0 0  -  -  -  -  -  -  -  -  -  -  -  -  - ] 
MessageSize = Request_Control 
291:  839309: PerfectSwitch-13: Message: [RequestMsg: addr = [0x440, line 
0x440] Type = GETX AccessMode = User Requestor = L1Cache-2 Destination = 
[NetDest (17) 0 0 0 0  - 0 0 0 1  - 0  -  - 0 0 0 0  -  -  -  -  -  -  -  -  -  
-  -  -  - ] MessageSize = Request_Control 
636:  839417: PerfectSwitch-7: Message: [RequestMsg: addr = [0x440, line 0x440] 
Type = GETX AccessMode = User Requestor = L1Cache-2 Destination = [NetDest (17) 
0 0 0 0  - 0 0 0 1  - 0  -  - 0 0 0 0  -  -  -  -  -  -  -  -  -  -  -  -  - ] 
MessageSize = Request_Control 
645: system.ruby.l1_cntrl3 time: 839421 addr: 0x440 event: Fwd_GETX state: I
___
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

[gem5-users] How to run Python code with TensorFlow in Gem5 syscall emulation mode?

2020-10-23 Thread Hasan, S M Shamimul via gem5-users
Hello,

* I want to run cosmoGAN code inside Gem5. The cosmoGAN code is available here 
(https://github.com/MustafaMustafa/cosmoGAN). The cosmoGAN code is in Python 
language, which uses TensorFlow. To run some code inside the Gem5, I need a 
binary file of my code. Hence, how can I run cosmoGAN Python code in the Gem5 
syscall emulation mode?

* Earlier, I was interested to know how I can run a simple "Hello World" code 
in Gem5 syscall emulation mode. Therefore, I posted the following question in 
StackOverflow.

StackOverflow Question Link:
===
https://stackoverflow.com/questions/6344/is-it-possible-to-run-python-code-in-gem5-syscall-emulation-mode

In the StackOverflow answer, Ciro Santilli told me to implement syscalls. I was 
getting an error for the "fchmod" syscall. Hence, I implemented it in the 
following file (/gem5/src/arch/x86/linux/process.cc) like below. However, it 
was not working for me. The Gem5 creates a large output file, and after that, 
it terminates.

Syscall Implementation:
==
{ 91, "fchmod", fchmodFunc },

* Please let me know how I can run cosmoGAN Python code (with TensorFlow) in 
the Gem5 syscall emulation mode?

Thank you in advance.

Sincerely,
S.M.Shamimul Hasan


___
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