-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
How is this tested? |
@szha I just checked that .cpp files are generated at |
Thanks. @marcoabreu do you have recommendation on how to integrate the tests for cython (e.g. whether to integrate into existing environments or to add a new environment)? |
This PR does not work as expected. I made a mistake to set
The .so files from the .pyx files are created but the linker does not find
|
Now, it passed all tests under
|
@szha @marcoabreu I think that it is necessary to add a cython build to CI. I'm not familiar with the CI system. Would you help? |
@piiswrong @szha @marcoabreu Would you review this PR? |
Sure. How can I help you? |
@marcoabreu Thank you. First, I'm just not sure what is the best way to add a cython build to CI. There are already many environments. Would you recommend some existing (linux) environments to add cython build? Or is it a good idea to add new environments for cython build? Second, I'm not familiar with Jenkins and docker. It looks like that I need to edit |
Depends, I'm not familiar with with cython :) Does it require its own pipeline or is it just a compile-flag we can turn on? Everything of interest to you would be in Jenkinsfile and ci/docker, right. |
make
make cython
cd python
# `pip install -e .` or
export PYTHONPATH=my_installation_dir
python setup.py install --with-cython --prefix=my_installation_dir
# run tests ... I think that this is the typical way to build and run the tests. cmake build would be similar. Setting cxx/nvcc compiler flags is not needed. |
Hmmm so far we don't use setup.py but just set the Python path. But I'd
welcome to see that. Feel free to change that for some tests.
What artifacts are being generated by running make in cython? We would have
to take care of copying them over as well
Deokjae Lee <notifications@github.com> schrieb am Mi., 13. Juni 2018, 22:28:
… make
cd python
make cython
# pip install or export PYTHONPATH=my_installation_dir
python setup.py install --with-cython --prefix=my_installation_dir
cd ../tests/python# run tests ...
I think that this is the typical way to build and run the tests. cmake
build would be similar. Setting cxx/nvcc compiler flags is not required.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10951 (comment)>,
or mute the thread
</~https://github.com/notifications/unsubscribe-auth/ARxB67TrDKvLVuDn9aksojbVF5bAg0qTks5t8fR9gaJpZM4T_ovN>
.
|
Can we get this PR merged? I'm not sure what prevents the merging. Anyway MXNet does not use cython modules unless the env var MXNET_USE_CYTHON is set in runtime. So this PR does not change any behavior of MXNet unless the env var is set. Merging this PR is relatively safe and we could observe its effect after merging. Or we could completely remove the cython modules. They exist but are broken. Keeping the broken things would not be a good idea. |
broken again if use with master |
Agree we should move this PR forward, or do something about it. Has been open for too long. |
Do we need to rebase it? the patch shows unrelated diffs. |
@asitstands could you rebase so we try to get this merged? |
I'm not sure why this PR shows unrelated commits with hundreds of changed files. My own repository shows only 13 files actually changed by this PR. I found that the target branch of this PR has been changed to |
@asitstands as this PR has been around for quite a while I changed it to a feature branch with the hope to merge it there so that others may carry on this work. Since you're working on this now, it's no longer necessary so I changed it back. It should be ready for review after another rebase. |
Now this PR has no confliction with the main branch and passes the tests. Please review whether it is OK to be merged. |
* Fix broken build with cython 0.28 * Fix setup.py to be compatible with cython 0.28 * Fix broken cython ndarray module * Revised comments * Replace hard coded library path with one obtained by find_lib_path * Add documentation for MXNET_ENABLE_CYTHON and MXNET_ENFORCE_CYTHON * Add cython build to CI * Fix for cython CI * Adjust python environment for cython CI * Add make variables to set python executable * Fix typo * Fix nnvm include path * Does not use ccache for cython * Fix issues with the wildcards in the library list in Jenkinsfile * Fix issues with the wildcards in the library list in Jenkinsfile (continued) * Fix issues with the wildcards in the library list in Jenkinsfile (continued) * Intentionally introduce a bug to check that the tests actually runwith cython * Remove the intentionally introduced bug * Update installation doc * Retrigger CI * Run cython CI in ubuntu environment instead of CentOS environment * Commit a missed file * Fix a bug in check_cython * Refine environments for cython CI * Restore unrelated changes * Fix a problem occurring when the cython modules for python 2 and 3 are built successively * Trigger CI * Pin the cython version in the CI * Catch up apache#11320 * Remove optional arguments unused after apache#11320 * Trigger CI * Trigger CI * Trigger CI * Remove unnecessary stype argument from the NDArrayBase constructor * Revise confusing initialization of `_ndarray_cls` * Add cython build for python3 in CI * Fix misplaced cython build in CI * Adjust CI environments for cython * Fix invalid path for cython generated .so files in cmake build * Revert invalid fix * Revise docs * Revise check_cython * Temporaily use make instead of cmake for debugging * Temporal changes for debugging * Temporal changes for debugging * Temporaily use ctypes instead of cython modules for debugging * Temporaily disable ccache for debugging * Temporaily use make (DEV = 0) instead of cmake for debugging * Temporaily disable cudnn for debugging * Restore temporal changes * Temporarily disable coverage report * Adapt to Jenkinsfile_utils * Adapt to Jenkinsfile_utils (cont.) * Restore unrelated changes * Restore temporal changes * Resolving conflict * Test with the cmake build is removed * Add MXNET_ENABLE_CYTHON=0 to tensorrt test * Fix typo * Trigger CI * Trigger CI * Adapt to Jenkinsfile refactoring * Adapt to Jenkinsfile refactoring (cont.) * Trigger CI * Trigger CI * Stash missing cython modules * Trigger CI * CMake build of cython modules without unit tests * Fix typo * Trigger CI * Fix a mistake introduced in merging process * trigger test * Update Jenkinsfile_utils.groovy * Trigger CI * Trigger CI * Trigger CI * Trigger tests * Trigger tests * Trigger tests * Trigger tests * Trigger tests * Trigger tests * Trigger tests * Trigger tests
Description
Fix broken cython module for ndarray and also ensure the compatibility with the recent version (0.28) of cython (#10295, #10738). See this comment for the details of the changes.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.