gem5-users@gem5.org

The gem5 Users mailing list

View all threads

RENAME: HELP Needed for Running Benchmarks in GPU Full System Simulation

关富润
Sun, Dec 24, 2023 3:43 AM

Dear all,
I am currently engaged in GPU full system simulation using gem5 and am at a stage where I seek to run benchmark suites, specifically Rodinia and PolyBench.  I have observed that both of these benchmark suites support compilation for OpenCL architecture, and I have a few questions regarding the compilation and execution process within the gem5 environment.  Compilation Framework: Should I compile these benchmarks under the OpenCL framework? Is this the recommended approach for compatibility with the gem5 GPU full system simulation?

Utilizing ROCm in gem5: I noticed that the ROCm installed in the gpu-fs docker image includes OpenCL compilation tools. Is it feasible to directly compile these benchmarks within this environment? Are there any specific considerations or steps that I should be aware of? Guidance and Documentation: Would anyone be able to provide guidance or point me towards documentation on how to properly set up and execute these benchmarks in the gem5 GPU full system simulation context?

Thank you in advance for your time and assistance. I look forward to any suggestions or guidance you can offer.

Best regards,

Sandy.

Dear all, I am currently engaged in GPU full system simulation using gem5 and am at a stage where I seek to run benchmark suites, specifically Rodinia and PolyBench. I have observed that both of these benchmark suites support compilation for OpenCL architecture, and I have a few questions regarding the compilation and execution process within the gem5 environment. Compilation Framework: Should I compile these benchmarks under the OpenCL framework? Is this the recommended approach for compatibility with the gem5 GPU full system simulation? Utilizing ROCm in gem5: I noticed that the ROCm installed in the gpu-fs docker image includes OpenCL compilation tools. Is it feasible to directly compile these benchmarks within this environment? Are there any specific considerations or steps that I should be aware of? Guidance and Documentation: Would anyone be able to provide guidance or point me towards documentation on how to properly set up and execute these benchmarks in the gem5 GPU full system simulation context? Thank you in advance for your time and assistance. I look forward to any suggestions or guidance you can offer. Best regards, Sandy.
PM
Poremba, Matthew
Tue, Jan 2, 2024 7:32 PM

[Public]

Hi Sandy,

Depending on the benchmark, OpenCL might do an online compile (i.e., compile the kernels right before running them).  If you are using KVM it should just work.  Otherwise, the online compilation will take a significant amount of simulation time and offline compiling would be preferred (i.e., compile the kernels offline on the disk image).

-Matt

From: 关富润 via gem5-users gem5-users@gem5.org
Sent: Saturday, December 23, 2023 7:44 PM
To: gem5-users gem5-users@gem5.org
Cc: 关富润 448367413@qq.com
Subject: [gem5-users] RENAME: HELP Needed for Running Benchmarks in GPU Full System Simulation

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.

Dear all,
I am currently engaged in GPU full system simulation using gem5 and am at a stage where I seek to run benchmark suites, specifically Rodinia and PolyBench. I have observed that both of these benchmark suites support compilation for OpenCL architecture, and I have a few questions regarding the compilation and execution process within the gem5 environment. Compilation Framework: Should I compile these benchmarks under the OpenCL framework? Is this the recommended approach for compatibility with the gem5 GPU full system simulation?

Utilizing ROCm in gem5: I noticed that the ROCm installed in the gpu-fs docker image includes OpenCL compilation tools. Is it feasible to directly compile these benchmarks within this environment? Are there any specific considerations or steps that I should be aware of? Guidance and Documentation: Would anyone be able to provide guidance or point me towards documentation on how to properly set up and execute these benchmarks in the gem5 GPU full system simulation context?

Thank you in advance for your time and assistance. I look forward to any suggestions or guidance you can offer.

Best regards,

Sandy.

[Public] Hi Sandy, Depending on the benchmark, OpenCL might do an online compile (i.e., compile the kernels right before running them). If you are using KVM it should just work. Otherwise, the online compilation will take a significant amount of simulation time and offline compiling would be preferred (i.e., compile the kernels offline on the disk image). -Matt From: 关富润 via gem5-users <gem5-users@gem5.org> Sent: Saturday, December 23, 2023 7:44 PM To: gem5-users <gem5-users@gem5.org> Cc: 关富润 <448367413@qq.com> Subject: [gem5-users] RENAME: HELP Needed for Running Benchmarks in GPU Full System Simulation Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. Dear all, I am currently engaged in GPU full system simulation using gem5 and am at a stage where I seek to run benchmark suites, specifically Rodinia and PolyBench. I have observed that both of these benchmark suites support compilation for OpenCL architecture, and I have a few questions regarding the compilation and execution process within the gem5 environment. Compilation Framework: Should I compile these benchmarks under the OpenCL framework? Is this the recommended approach for compatibility with the gem5 GPU full system simulation? Utilizing ROCm in gem5: I noticed that the ROCm installed in the gpu-fs docker image includes OpenCL compilation tools. Is it feasible to directly compile these benchmarks within this environment? Are there any specific considerations or steps that I should be aware of? Guidance and Documentation: Would anyone be able to provide guidance or point me towards documentation on how to properly set up and execute these benchmarks in the gem5 GPU full system simulation context? Thank you in advance for your time and assistance. I look forward to any suggestions or guidance you can offer. Best regards, Sandy.
MS
Matt Sinclair
Tue, Jan 2, 2024 7:54 PM

Just to add to this: to the best of my knowledge online compilation in
OpenCL is not supported in gem5 outside of KVM (which does that compilation
on the real CPU).  I don't think it just increases simulation time -- I
think it just throws an error.

Matt

On Tue, Jan 2, 2024 at 1:37 PM Poremba, Matthew via gem5-users <
gem5-users@gem5.org> wrote:

[Public]

Hi Sandy,

Depending on the benchmark, OpenCL might do an online compile (i.e.,
compile the kernels right before running them).  If you are using KVM it
should just work.  Otherwise, the online compilation will take a
significant amount of simulation time and offline compiling would be
preferred (i.e., compile the kernels offline on the disk image).

-Matt

From: 关富润 via gem5-users gem5-users@gem5.org
Sent: Saturday, December 23, 2023 7:44 PM
To: gem5-users gem5-users@gem5.org
Cc: 关富润 448367413@qq.com
Subject: [gem5-users] RENAME: HELP Needed for Running Benchmarks in GPU
Full System Simulation

Caution: This message originated from an External Source. Use proper
caution when opening attachments, clicking links, or responding.

Dear all,

I am currently engaged in GPU full system simulation using gem5 and am at
a stage where I seek to run benchmark suites, specifically Rodinia and
PolyBench. I have observed that both of these benchmark suites support
compilation for OpenCL architecture, and I have a few questions regarding
the compilation and execution process within the gem5 environment. Compilation
Framework: Should I compile these benchmarks under the OpenCL framework?
Is this the recommended approach for compatibility with the gem5 GPU full
system simulation?

Utilizing ROCm in gem5: I noticed that the ROCm installed in the gpu-fs
docker image includes OpenCL compilation tools. Is it feasible to directly
compile these benchmarks within this environment? Are there any specific
considerations or steps that I should be aware of? Guidance and
Documentation: Would anyone be able to provide guidance or point me
towards documentation on how to properly set up and execute these
benchmarks in the gem5 GPU full system simulation context?

Thank you in advance for your time and assistance. I look forward to any
suggestions or guidance you can offer.

Best regards,

Sandy.


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

Just to add to this: to the best of my knowledge online compilation in OpenCL is not supported in gem5 outside of KVM (which does that compilation on the real CPU). I don't think it just increases simulation time -- I think it just throws an error. Matt On Tue, Jan 2, 2024 at 1:37 PM Poremba, Matthew via gem5-users < gem5-users@gem5.org> wrote: > [Public] > > Hi Sandy, > > > > > > Depending on the benchmark, OpenCL might do an online compile (i.e., > compile the kernels right before running them). If you are using KVM it > should just work. Otherwise, the online compilation will take a > significant amount of simulation time and offline compiling would be > preferred (i.e., compile the kernels offline on the disk image). > > > > > > -Matt > > > > *From:* 关富润 via gem5-users <gem5-users@gem5.org> > *Sent:* Saturday, December 23, 2023 7:44 PM > *To:* gem5-users <gem5-users@gem5.org> > *Cc:* 关富润 <448367413@qq.com> > *Subject:* [gem5-users] RENAME: HELP Needed for Running Benchmarks in GPU > Full System Simulation > > > > *Caution:* This message originated from an External Source. Use proper > caution when opening attachments, clicking links, or responding. > > > > Dear all, > > I am currently engaged in GPU full system simulation using gem5 and am at > a stage where I seek to run benchmark suites, specifically Rodinia and > PolyBench. I have observed that both of these benchmark suites support > compilation for OpenCL architecture, and I have a few questions regarding > the compilation and execution process within the gem5 environment. Compilation > Framework: Should I compile these benchmarks under the OpenCL framework? > Is this the recommended approach for compatibility with the gem5 GPU full > system simulation? > > > > Utilizing ROCm in gem5: I noticed that the ROCm installed in the gpu-fs > docker image includes OpenCL compilation tools. Is it feasible to directly > compile these benchmarks within this environment? Are there any specific > considerations or steps that I should be aware of? Guidance and > Documentation: Would anyone be able to provide guidance or point me > towards documentation on how to properly set up and execute these > benchmarks in the gem5 GPU full system simulation context? > > > > Thank you in advance for your time and assistance. I look forward to any > suggestions or guidance you can offer. > > > > Best regards, > > Sandy. > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >