Skip to content

[PluggableDevice]Add kernel and stream executor c api extension - #44747

Merged
copybara-service[bot] merged 3 commits into
tensorflow:masterfrom
Intel-tensorflow:stream_executor_C_API_extension
Nov 25, 2020
Merged

copybara-service[bot] merged 3 commits into
tensorflow:masterfrom
Intel-tensorflow:stream_executor_C_API_extension

Conversation

@jzhoulon

Copy link
Copy Markdown
Contributor

Extend current kernel C API and refactor some stream executor C API

@jzhoulon

Copy link
Copy Markdown
Contributor Author

@annarev @sanjoy @penpornk This is the PR mentioned in #43610, thanks

@gbaned gbaned self-assigned this Nov 11, 2020
@gbaned
gbaned requested a review from annarev November 11, 2020 03:27
Comment thread tensorflow/c/BUILD Outdated
":tf_tensor",
"//tensorflow/core:framework",
"//tensorflow/core:framework_lite",
"//tensorflow/c/experimental/stream_executor:stream_executor",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit. align indentation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done, thanks for reminder.

Comment thread tensorflow/c/kernels.h Outdated

// TF_InitKernel to do op/kernel registration.
// Plugin should either implement TF_InitKernel to register kernels or use
// static registration. This function should register all kernels in a plugin.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Nov 17, 2020
@annarev
annarev requested a review from sanjoy November 17, 2020 05:33
@annarev annarev added the API review API Review label Nov 17, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Nov 17, 2020
@google-ml-butler google-ml-butler Bot removed the ready to pull PR ready for merge process label Nov 17, 2020
@gbaned
gbaned requested a review from annarev November 17, 2020 06:46
@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Nov 17, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Nov 17, 2020
Comment on lines +41 to +46
namespace {
struct TFStatusDeleter {
void operator()(TF_Status* s) const { TF_DeleteStatus(s); }
};
using OwnedTFStatus = std::unique_ptr<TF_Status, TFStatusDeleter>;
} // namespace

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@sanjoy I have changed the code as your request, could you help to take a look? If there is any thing need to change, please let me know. Thanks.

@jzhoulon jzhoulon changed the title Add kernel and stream executor c api extension [PluggableDevice]Add kernel and stream executor c api extension Nov 18, 2020
@google-ml-butler google-ml-butler Bot removed the ready to pull PR ready for merge process label Nov 18, 2020
@gbaned
gbaned requested a review from sanjoy November 18, 2020 10:32

@fchollet fchollet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(For tf-api-owners)

@google-ml-butler google-ml-butler Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Nov 18, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Nov 18, 2020
@rthadur rthadur removed the ready to pull PR ready for merge process label Nov 18, 2020
@rthadur rthadur added the ready to pull PR ready for merge process label Nov 18, 2020
@annarev annarev added the kokoro:force-run Tests on submitted change label Nov 20, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Nov 20, 2020
@copybara-service
copybara-service Bot merged commit aa22def into tensorflow:master Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API review API Review cla: yes ready to pull PR ready for merge process size:L CL Change Size: Large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants