Discussion:
[gem5-users] SPEC2017 on gem5 SE mode
Mohammad Khasawneh
2017-12-15 15:57:02 UTC
Permalink
Hello,

I’m trying to get SPEC2017 to run in SE mode (X86) as SPEC2006 did, so far the only benchmark that ran to completion is 505.mcf_r with no modifications to the basic config file. Here is what I did:

1. Compiled benchmarks statically (although it seems this is no longer a requirement on newer gem5 versions).
2. Made sure binaries execute natively on host.
3. Ran them through gem5 pretty much like I used to run SPEC2006.

What I get:
On many of them a common error I get is this:

panic: Unrecognized/invalid instruction executed:

{
leg = 0x10,
rex = 0,
vex/xop = 0x5,
op = {
type = three byte 0f3a,
op = 0x18,
},
modRM = 0,
sib = 0,
immediate = 0,
displacement = 0
dispSize = 0
}

I’m assuming a change in the config file would force the compiler to produce more sensible binaries, any ideas on where I should start digging would be appreciated.

Thank you,
Mohammad
Jasmin Jahic
2017-12-15 21:00:51 UTC
Permalink
Hello,

do you run SPEC with 1 or more threads?

Best regards,
Jasmin
Post by Mohammad Khasawneh
Hello,
I’m trying to get SPEC2017 to run in SE mode (X86) as SPEC2006 did, so far
the only benchmark that ran to completion is 505.mcf_r with no
1. Compiled benchmarks statically (although it seems this is no longer
a requirement on newer gem5 versions).
2. Made sure binaries execute natively on host.
3. Ran them through gem5 pretty much like I used to run SPEC2006.
{
leg = 0x10,
rex = 0,
vex/xop = 0x5,
op = {
type = three byte 0f3a,
op = 0x18,
},
modRM = 0,
sib = 0,
immediate = 0,
displacement = 0
dispSize = 0
}
I’m assuming a change in the config file would force the compiler to
produce more sensible binaries, any ideas on where I should start digging
would be appreciated.
Thank you,
Mohammad
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Mohammad Khasawneh
2017-12-15 21:05:43 UTC
Permalink
I’m running only 1 thread and 1 copy of each program. I'm going over them individually and testing different compilation flags. As of now, just reducing the optimization level from O3 to O2 seems to have worked on a couple of them.

Thank you,
Mohammad


From: Jasmin Jahic
Sent: Friday, December 15, 2017 4:00 PM
To: gem5 users mailing list
Subject: Re: [gem5-users] SPEC2017 on gem5 SE mode

Hello,

do you run SPEC with 1 or more threads?

Best regards,
Jasmin

On Fri, Dec 15, 2017 at 4:57 PM, Mohammad Khasawneh <***@binghamton.edu> wrote:
Hello,
 
I’m trying to get SPEC2017 to run in SE mode (X86) as SPEC2006 did, so far the only benchmark that ran to completion is 505.mcf_r with no modifications to the basic config file. Here is what I did:
 
1. Compiled benchmarks statically (although it seems this is no longer a requirement on newer gem5 versions).
2. Made sure binaries execute natively on host.
3. Ran them through gem5 pretty much like I used to run SPEC2006.
 
What I get:
On many of them a common error I get is this:
 
panic: Unrecognized/invalid instruction executed:
 
{
        leg = 0x10,
        rex = 0,
        vex/xop = 0x5,
        op = {
                type = three byte 0f3a,
                op = 0x18,
                },
        modRM = 0,
        sib = 0,
        immediate = 0,
        displacement = 0
        dispSize = 0
}
 
I’m assuming a change in the config file would force the compiler to produce more sensible binaries, any ideas on where I should start digging would be appreciated.
 
Thank you,
Mohammad

_______________________________________________
gem5-users mailing list
gem5-***@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Jasmin Jahic
2017-12-15 21:12:59 UTC
Permalink
Hmm, interesting. Can you please keep posting the info about your progress?

On Fri, Dec 15, 2017 at 10:05 PM, Mohammad Khasawneh <
Post by Mohammad Khasawneh
I’m running only 1 thread and 1 copy of each program. I'm going over them
individually and testing different compilation flags. As of now, just
reducing the optimization level from O3 to O2 seems to have worked on a
couple of them.
Thank you,
Mohammad
*Sent: *Friday, December 15, 2017 4:00 PM
*Subject: *Re: [gem5-users] SPEC2017 on gem5 SE mode
Hello,
do you run SPEC with 1 or more threads?
Best regards,
Jasmin
On Fri, Dec 15, 2017 at 4:57 PM, Mohammad Khasawneh <
Hello,
I’m trying to get SPEC2017 to run in SE mode (X86) as SPEC2006 did, so far
the only benchmark that ran to completion is 505.mcf_r with no
1. Compiled benchmarks statically (although it seems this is no longer
a requirement on newer gem5 versions).
2. Made sure binaries execute natively on host.
3. Ran them through gem5 pretty much like I used to run SPEC2006.
{
leg = 0x10,
rex = 0,
vex/xop = 0x5,
op = {
type = three byte 0f3a,
op = 0x18,
},
modRM = 0,
sib = 0,
immediate = 0,
displacement = 0
dispSize = 0
}
I’m assuming a change in the config file would force the compiler to
produce more sensible binaries, any ideas on where I should start digging
would be appreciated.
Thank you,
Mohammad
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Gabe Black
2017-12-15 22:17:34 UTC
Permalink
The instruction it's complaining about is an AVX-512 instruction (VINSERT)
which is not supported by gem5. You need to tell your compiler not to use
those instructions.

Gabe
Post by Jasmin Jahic
Hmm, interesting. Can you please keep posting the info about your progress?
On Fri, Dec 15, 2017 at 10:05 PM, Mohammad Khasawneh <
Post by Mohammad Khasawneh
I’m running only 1 thread and 1 copy of each program. I'm going over them
individually and testing different compilation flags. As of now, just
reducing the optimization level from O3 to O2 seems to have worked on a
couple of them.
Thank you,
Mohammad
*Sent: *Friday, December 15, 2017 4:00 PM
*Subject: *Re: [gem5-users] SPEC2017 on gem5 SE mode
Hello,
do you run SPEC with 1 or more threads?
Best regards,
Jasmin
On Fri, Dec 15, 2017 at 4:57 PM, Mohammad Khasawneh <
Hello,
I’m trying to get SPEC2017 to run in SE mode (X86) as SPEC2006 did, so
far the only benchmark that ran to completion is 505.mcf_r with no
1. Compiled benchmarks statically (although it seems this is no
longer a requirement on newer gem5 versions).
2. Made sure binaries execute natively on host.
3. Ran them through gem5 pretty much like I used to run SPEC2006.
{
leg = 0x10,
rex = 0,
vex/xop = 0x5,
op = {
type = three byte 0f3a,
op = 0x18,
},
modRM = 0,
sib = 0,
immediate = 0,
displacement = 0
dispSize = 0
}
I’m assuming a change in the config file would force the compiler to
produce more sensible binaries, any ideas on where I should start digging
would be appreciated.
Thank you,
Mohammad
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Loading...