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

[C#] Add missing rocm csharp api #15540

Merged
merged 9 commits into from
May 18, 2023
Merged

[C#] Add missing rocm csharp api #15540

merged 9 commits into from
May 18, 2023

Conversation

cloudhan
Copy link
Member

@cloudhan cloudhan commented Apr 17, 2023

Depends on #15535

@cloudhan cloudhan marked this pull request as ready for review April 19, 2023 08:16
@cloudhan
Copy link
Member Author

@yuslepukhin I can run the tests with Microsoft.ML.OnnxRuntime.EndToEndTests

cd csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests

export SKIPNONPACKAGETESTS=ON
export TESTONGPU=ON
export BUILD_SOURCESDIRECTORY=~/onnxruntime
export PACKAGENAME=Microsoft.ML.OnnxRuntime.ROCm
./runtest.sh ~/onnxruntime/build_rocm_nuget/Release/ 1.15.0-dev-20230418-0937-028d8c4749

The TESTONGPU=ON cause the one integration test, which runs squeezenet.onnx, to fail. I suspect this is also coupled with #15481

Make this PR ready to trigger all CI pipelines.

I'd plan add CI testing integration in one more PR. You can ignore this one for now

@cloudhan cloudhan force-pushed the guangyunhan/rocm-csharp-api branch from bb4e9d4 to d6966f4 Compare April 21, 2023 05:18
@cloudhan cloudhan force-pushed the guangyunhan/rocm-csharp-api branch from d6966f4 to 032704c Compare April 24, 2023 14:03
@cloudhan cloudhan force-pushed the guangyunhan/rocm-csharp-api branch from 050facb to b731a52 Compare April 28, 2023 05:29
@cloudhan cloudhan force-pushed the guangyunhan/rocm-csharp-api branch from b731a52 to 81bfb66 Compare May 4, 2023 07:14
Base automatically changed from guangyunhan/rocm-csharp to main May 15, 2023 23:27
@cloudhan cloudhan force-pushed the guangyunhan/rocm-csharp-api branch from 81bfb66 to 95e0e42 Compare May 16, 2023 04:04
@cloudhan cloudhan requested a review from yuslepukhin May 16, 2023 04:05
@cloudhan cloudhan requested a review from skottmckay May 16, 2023 07:47
@@ -287,6 +287,11 @@ public struct OrtApi
public IntPtr GetOptionalContainedTypeInfo;
public IntPtr GetResizedStringTensorElementBuffer;
public IntPtr KernelContext_GetAllocator;
public IntPtr GetBuildInfoString;
Copy link
Member Author

@cloudhan cloudhan May 16, 2023

Choose a reason for hiding this comment

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

backlog: add GetBuildInfoString stub to avoid rocm apis off-by-one problem. #Resolved

std::string options_str = "";

while (it != options.end()) {
if (options_str == "") {
Copy link
Member

@yuslepukhin yuslepukhin May 16, 2023

Choose a reason for hiding this comment

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

Consider using:

for (auto const& [key, val] : options) #Resolved

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@yuslepukhin yuslepukhin left a comment

Choose a reason for hiding this comment

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

🕐

@cloudhan cloudhan force-pushed the guangyunhan/rocm-csharp-api branch from 88def42 to aa2590d Compare May 17, 2023 01:40
Copy link
Member

@yuslepukhin yuslepukhin left a comment

Choose a reason for hiding this comment

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

:shipit:

@yuslepukhin yuslepukhin changed the title Add missing rocm csharp api [C#] Add missing rocm csharp api May 17, 2023
@cloudhan cloudhan merged commit 856afa4 into main May 18, 2023
@cloudhan cloudhan deleted the guangyunhan/rocm-csharp-api branch May 18, 2023 00:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants