This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable OpenMP offloading support for 3rdparty/openmp (#17098)
* Disable OpenMP offloading support for 3rdparty/openmp OpenMP offloading was introduced some time during the past two years and is enabled by default. With upgrading 3rdparty/openmp in #17012 it was made part of the MXNet CMake build. But we don't use OpenMP offloading and the Cuda target in the llvm OpenMP Offloading build is broken in our setting. * Update CMake on CI
- Loading branch information
Showing
10 changed files
with
75 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
# | ||
# Dockerfile to build MXNet for Android ARMv7 | ||
|
||
FROM mxnetcipinned/dockcross-base:11262018 | ||
FROM dockcross/base | ||
MAINTAINER Pedro Larroy "[email protected]" | ||
|
||
# The cross-compiling emulator | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
# | ||
# Dockerfile to build MXNet for Android ARM64/ARMv8 | ||
|
||
FROM mxnetcipinned/dockcross-base:11262018 | ||
FROM dockcross/base | ||
MAINTAINER Pedro Larroy "[email protected]" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
|
@@ -82,4 +82,4 @@ RUN /work/ubuntu_adduser.sh | |
|
||
COPY runtime_functions.sh /work/ | ||
|
||
WORKDIR /work/build | ||
WORKDIR /work/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,15 @@ | |
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
import os | ||
import contextlib | ||
import logging | ||
import logging.config | ||
import os | ||
import subprocess | ||
import sys | ||
|
||
import requests | ||
|
||
|
||
def get_mxnet_root() -> str: | ||
curpath = os.path.abspath(os.path.dirname(__file__)) | ||
|
@@ -130,3 +133,31 @@ def config_logging(): | |
# or sensitive information | ||
logging.getLogger("botocore").setLevel(logging.WARNING) | ||
logging.getLogger("requests").setLevel(logging.WARNING) | ||
|
||
|
||
# Takes url and downloads it to the dest_path directory on Windows. | ||
def download_file(url, dest_path): | ||
file_name = url.split('/')[-1] | ||
full_path = "{}\\{}".format(dest_path, file_name) | ||
logging.info("Downloading: {}".format(full_path)) | ||
r = requests.get(url, stream=True) | ||
if r.status_code == 404: | ||
return r.status_code | ||
elif r.status_code != 200: | ||
logging.error("{} returned status code {}".format(url, r.status_code)) | ||
with open(full_path, 'wb') as f: | ||
for chunk in r.iter_content(chunk_size=1024): | ||
if chunk: # filter out keep-alive new chunks | ||
f.write(chunk) | ||
return full_path | ||
|
||
|
||
# Takes arguments and runs command on host. Shell is disabled by default. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
leezu
Author
Contributor
|
||
def run_command(args, shell=False): | ||
try: | ||
logging.info("Issuing command: {}".format(args)) | ||
res = subprocess.check_output(args, shell=shell, timeout=1800).decode("utf-8").replace("\r\n", "") | ||
logging.info("Output: {}".format(res)) | ||
except subprocess.CalledProcessError as e: | ||
raise RuntimeError("command '{}' return with error (code {}): {}".format(e.cmd, e.returncode, e.output)) | ||
return res |
can we do subprocess.check_call?