-
Notifications
You must be signed in to change notification settings - Fork 19
GPU: lazy memory allocation #615
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,8 +186,11 @@ int __parsec_execute( parsec_execution_stream_t* es, | |
| task->status = PARSEC_TASK_STATUS_COMPLETE; | ||
| if(PARSEC_DEV_RECURSIVE >= tc->incarnations[chore_id].type) { | ||
| /* accelerators count their own executed tasks */ | ||
| #if 0 | ||
| /* This is wrong: chore_id is the index in incarnations, but it's not the device id */ | ||
| parsec_device_module_t *dev = parsec_mca_device_get(chore_id); | ||
| parsec_atomic_fetch_inc_int64((int64_t*)&dev->executed_tasks); | ||
| #endif | ||
|
Comment on lines
+189
to
+193
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is that disabled?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because in The way I understand this, this finds the first TYPE of incarnation that we want to execute. If I have X CPUs, Y NVIDIA cards and Z Intel cards, incarnations can hold 3 entries, in any order, not X+Y+Z entries. I think this is erroneous, and I think we don't have the device id at this time, it's lost within hook (which calls
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This counts only CPU and RECURSIVE, not GPUs (it's
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see #616 that fixes the underlying problem
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This became incorrect because DTD is allowed to register the chores in any order. If you replace
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I merged 616, this will need rebasing |
||
| } | ||
| } | ||
| /* Record EXEC_END event only for incarnation that succeeds */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation seems off by 1