Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulator crashes if the las kernel is a memcpy #286

Open
rodhuega opened this issue Mar 9, 2024 · 1 comment
Open

Simulator crashes if the las kernel is a memcpy #286

rodhuega opened this issue Mar 9, 2024 · 1 comment

Comments

@rodhuega
Copy link
Contributor

rodhuega commented Mar 9, 2024

The simulator is crashing with assert(k) in main.cc

The reason is due to finding as a last kernel a MemcpyHtoD,0x00007f2483b08a00,4 instead of a kernel-X.traceg. This behavior has been observed in parboil-bfs with an Ampere trace.

Hopefully, this can be fixed by replacing an if by: if ( (finished_kernel_uid || m_gpgpu_sim->cycle_insn_cta_max_hit() || !m_gpgpu_sim->active()) && !kernels_info.empty() )

However, I don't know if you are thinking in a different solution.

@JRPan
Copy link
Collaborator

JRPan commented Mar 20, 2024

I'm more curious about why the last kernel is MemcpyHtoD.
I'm worrying that maybe there was a kernel launch after that, but the tracer crashed and was unable to catch it.
MemcpyHtoD to GPU without consuming the data sounds like a weird use case to me.

Thanks

sun-lingyu added a commit to sun-lingyu/accel-sim-framework that referenced this issue Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants