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

adding initial support for malloc/empty node #62

Closed
wants to merge 7 commits into from

Conversation

reble
Copy link
Owner

@reble reble commented Dec 21, 2022

Seeing some issues with the tests, have to track them down.

@reble reble added the Graph Implementation Related to DPC++ implementation and testing label Dec 21, 2022
@reble reble changed the title adding initial support for malloc/empty/dummy node adding initial support for malloc/empty node Jan 11, 2023
@@ -23,6 +25,14 @@ namespace experimental {
namespace detail {

void graph_impl::exec(sycl::detail::queue_ptr q) {
for(auto i:MAllocs) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preference for a more descriptive name here than i.

Copy link
Collaborator

@EwanC EwanC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only minor comments

@@ -23,6 +25,12 @@ namespace experimental {
namespace detail {

void graph_impl::exec(sycl::detail::queue_ptr q) {
for(auto alloc:MAllocs) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR could use a clang-format, need some whitespace here (and other places) and some code added later is using 4-space indentation rather than 2.

x[0] = v;
auto result = x[0];

//sycl::free(x, q);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if we try to call free here? I'd have thought if x was allocated on the execution of executable_graph that would still work. Might need a q.wait() after the submission.


const size_t n = 1000;
float *x;
//void*& x = vec;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove commented out code

q.submit([&](sycl::handler &h) { h.exec_graph(executable_graph); });

float v = 2.0f;
//auto vec = static_cast<float*>(x);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove commented out code

@reble
Copy link
Owner Author

reble commented Mar 21, 2023

Obsolete and superseded by #106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph Implementation Related to DPC++ implementation and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants