-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[BUGFIX]fix python 3.8 ctypes dll load with windows #19236
Conversation
Hey @yajiedesign , Thanks for submitting the PR
CI supported jobs: [windows-cpu, windows-gpu, unix-cpu, sanity, website, centos-cpu, unix-gpu, clang, edge, centos-gpu, miscellaneous] Note: |
@szha @aaronmarkham Lint doesn't know the new parameter. What should I do? |
I disable it. |
run ci [windows-gpu] |
https://docs.python.org/3/library/ctypes.html The document shows that
Could we pass the full path of DLL by |
@wkcn The key is to find CUDA's dll. Adjusting mxnet.dll path doesn't help. |
47e1ffd
to
fcf9491
Compare
if sys.version_info >= (3, 8) and os.name == "nt": | ||
# use LOAD_WITH_ALTERED_SEARCH_PATH, For simplicity, let's just fill the numbers. | ||
# pylint: disable=E1123 | ||
lib = ctypes.CDLL(lib_path[0], winmode=0x00000008) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the magic value available as a constant somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not at the moment.So I added some comments.
* [v1.9.x] CI fixes (#20648) * Update openssl package in ubuntu_core.sh (used in ubuntu 16.04 images) to avoid bug triggered by let's encrypt expired ca cert. * Reduce number of parallel docker builds we run at once to 2, since there are multiple jobs (on different branches) running at the same time. * Use different mirror to download binutils to avoid expired let's encrypt CA cert. * [CI] UPgrade windows CI * fix python 3.8 ctypes dll load with windows (#19236) Co-authored-by: barry-jin <[email protected]> Co-authored-by: Hu Shiwen <[email protected]>
…20677) * [v1.9.x] CI fixes (apache#20648) * Update openssl package in ubuntu_core.sh (used in ubuntu 16.04 images) to avoid bug triggered by let's encrypt expired ca cert. * Reduce number of parallel docker builds we run at once to 2, since there are multiple jobs (on different branches) running at the same time. * Use different mirror to download binutils to avoid expired let's encrypt CA cert. * [CI] UPgrade windows CI * fix python 3.8 ctypes dll load with windows (apache#19236) Co-authored-by: barry-jin <[email protected]> Co-authored-by: Hu Shiwen <[email protected]>
* [v1.x] License updates (#20709) * Remove Apache-2.0 license header from ONNX files that were originally BSD 3-clause licensed and properly list then under BSD 3-clause section in LICENSE. * Remove 3rdparty/mkldnn/src/common/primitive_hashing.hpp from LICENSE under Boost License section, since it is clearly Apache 2.0 licensed. * Clarify Caffe license to BSD 2-clause with Caffe extensions. * Clarify Caffe license to BSD 2-clause with Caffe extensions. * Remove duplicate file, should only be in BSD 3-clause section. * Update LICENSE with latest from 3rdparty/mkldnn/THIRD-PARTY-PROGRAMS * Sort files under MIT license. Remove references to generic licenses. * Remove incorrectly added Apache header on MIT-licensed files. * Sort lines in ASF-2.0 licensed list. * Add license text in licenses/ to fulfill binary distribution requirements. * Remove copyright by contributors line from ASF-licensed file. * Fix rat-excludes and licensecheck exclude list. * Error out and fail if license_header.py tool detects multiple licenses in a file. * Move LayerNormCPUKernel function to own file, since it is licensed under MIT. Update LICENSE to reflect this. * Remove LayerNormCPUKernel from layer_norm.cc, it is now in layer_norm_cpu.h. * Add header guard, fix first line to pass lint. * Update skywalking-eyes config based on current LICENSE, add layer_norm_cpu.h to whitelist. * Rename license file for layer_norm_cpu.h * Update mkldnn license text and LICENSE. * [v1.x] Port #20648, #20676, #19236 to v1.x (#20677) * [v1.9.x] CI fixes (#20648) * Update openssl package in ubuntu_core.sh (used in ubuntu 16.04 images) to avoid bug triggered by let's encrypt expired ca cert. * Reduce number of parallel docker builds we run at once to 2, since there are multiple jobs (on different branches) running at the same time. * Use different mirror to download binutils to avoid expired let's encrypt CA cert. * [CI] UPgrade windows CI * fix python 3.8 ctypes dll load with windows (#19236) Co-authored-by: barry-jin <[email protected]> Co-authored-by: Hu Shiwen <[email protected]> * Remove general license text files, as this is included in individual license files in licenses/*. Update license for code contributed/derived from https://github.com/msracver/Deformable-ConvNets which is now MIT licensed and update LICENSE to reflect this. Add references for original code with github revision to MIT-licensed files. * Fix rat-excludes. * Update skywalking-eyes config. Co-authored-by: barry-jin <[email protected]> Co-authored-by: Hu Shiwen <[email protected]>
Description
fix python 3.8 ctypes dll load with windows
Checklist
Essentials
Changes
Comments