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

How to run test file #20963

Closed
MikeChenfu opened this issue Jun 7, 2024 · 2 comments
Closed

How to run test file #20963

MikeChenfu opened this issue Jun 7, 2024 · 2 comments
Labels
ep:CUDA issues related to the CUDA execution provider

Comments

@MikeChenfu
Copy link

Describe the issue

Hello, I am new to the onnxruntime. I compiled it with source code but not able to run a unit test, such as moe_test. Appreciate it if anyone has an idea about that?

To reproduce

Not be able to find executable for test code

Urgency

No response

Platform

Linux

OS Version

.4.250

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.19.0

ONNX Runtime API

Python

Architecture

X64

Execution Provider

CUDA

Execution Provider Library Version

No response

@github-actions github-actions bot added the ep:CUDA issues related to the CUDA execution provider label Jun 7, 2024
@AdamLouly
Copy link
Contributor

Hey,
in your build folder try:
python -m pytest –sv moe_test.py
for cpp tests:

./onnxruntime_test_all --gtest_filter="TESTNAMEHERE*"

@MikeChenfu
Copy link
Author

@AdamLouly Got it! Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:CUDA issues related to the CUDA execution provider
Projects
None yet
Development

No branches or pull requests

2 participants