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

azure #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,4 @@ jobs:
export PYTHONPATH=tests/python/contrib:${PYTHONPATH} &&
export BUNDLE_ID=org.apache.tvmrpc &&
export BUNDLE_PATH=build-ios-simulator/apps/ios_rpc/ios_rpc/src/ios_rpc-build/Release-iphonesimulator/tvmrpc.app &&
python -m pytest -v tests/python/contrib/test_rpc_server_device.py

Windows:
runs-on: windows-2016
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up environment
uses: ./.github/actions/setup
- name: Conda Build
shell: cmd /C call {0}
run: >-
conda build --output-folder=conda/pkg conda/recipe &&
conda install tvm -c ./conda/pkg
- name: Test
shell: cmd /C call {0}
run: >-
python -m pytest -v tests/python/all-platform-minimal-test

for ((i=1; i < 100; i++)); do python -m pytest -vrP tests/python/contrib/test_rpc_server_device.py; done
2 changes: 1 addition & 1 deletion apps/ios_rpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ ExternalProject_Add(ios_rpc
IPHONEOS_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}
DEVELOPMENT_TEAM=${CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM}
TVM_BUILD_DIR=${CMAKE_BINARY_DIR}
USE_CUSTOM_DSO_LOADER=1
USE_CUSTOM_DSO_LOADER=0
PRODUCT_BUNDLE_IDENTIFIER=${CMAKE_IOS_RPC_BUNDLE}
)
1 change: 1 addition & 0 deletions apps/ios_rpc/tvmrpc/TVMRuntime.mm
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ void Init(const std::string& name) {
.set_body([](TVMArgs args, TVMRetValue* rv) {
auto n = make_object<UnsignedDSOLoader>();
n->Init(args[0]);
std::cout << "XXXXXXXXXXXXXXXXXX USE_CUSTOM_DSO_LOADER=1";
*rv = CreateModuleFromLibrary(n);
});

Expand Down
4 changes: 4 additions & 0 deletions python/tvm/auto_scheduler/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,9 +1074,13 @@ def _rpc_run(
error_msg = None
try:
# upload built module
print(f"{host} {id(host)} {port} {id(port)} ======= 1 =======")
remote = request_remote(key, host, port, priority, timeout)
print(f"{host} {id(host)} {port} {id(port)} ======= 2 =======")
remote.upload(build_res.filename)
print(f"{host} {id(host)} {port} {id(port)} ======= 3 =======")
func = remote.load_module(os.path.split(build_res.filename)[1])
print(f"{host} {id(host)} {port} {id(port)} ======= 4 =======")
dev = remote.device(str(inp.task.target), 0)
# Limitation:
# We can not get PackFunction directly in the remote mode as it is wrapped
Expand Down
2 changes: 2 additions & 0 deletions tests/python/contrib/test_rpc_server_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def setup_rpc_tracker_configuration(f):

def wrapper():
tracker_server = tracker.Tracker(host=HOST_URL, port=HOST_PORT, silent=True)
print(f"Tracker host: {tracker_server.host} ({id(tracker_server.host)})")
print(f"Tracker port: {tracker_server.port} ({id(tracker_server.port)})")
with server_ios_launcher.ServerIOSContextManager(
mode=server_ios_launcher.RPCServerMode.tracker.value,
host=tracker_server.host,
Expand Down