This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
numba-dppy extension #76
Copy link
Copy link
Closed
Milestone
Description
Reorganize code base and initial version of numba-dppy extension
- Move the
numba.dpplpackage to its own repository (i.e.numba-dppy) - All core Numba changes to be outlined as patches needed to build Numba with numba-dppy
- All patches need to be analyzed if they can be refactored or converted into plugins
PRs for cleaning unintended changes (make branch pydppl as close as possible to release0.51 branch):
- Revert whitespaces to release0.51 #84 @reazulhoque
- Remove changes to CPUDispatcher #90 @reazulhoque @1e-to closes Importing
cpu_dispatchermodifies global state #89 - Remove unused files #108 @reazulhoque
- Remove _remove_unneeded_phis() #86 @Hardcode84 @reazulhoque
- Remove unused var openclliteflags from setup.py #88 @reazulhoque
- Removed unintended changes from core/base.py #85 @DrTodd13
- Patch for codegen debugging #104 @DrTodd13 @reazulhoque - reviewed - most debug code to remove, 2 possible upstream PRs (1 as minimum).
- Patch for disable emit_environment_object() for dppl context #100 @reazulhoque @diptorupd - reviewed - need to be tested
- Remove unary_sqrt_extern() used for sqrt_impl #87 @DrTodd13 @reazulhoque - reviewed - need to test and remove
- Extending typeof() #101 @reazulhoque - reviewed - need investigation and could be removed after tests
PRs with patches (after refactoring it could be proposed to upstream, it is for starting discussion about this changes):
- Patch for with context #96 @AlexanderKalistratov @1e-to
- Use TargetDispatcher from numba_dppy #118 @PokhodenkoSA - update for moving to
numba-dppy - Add support for dispatcher retargeting using with-context numba/numba#6870 (or Support changing dispatcher options via a with context numba/numba#6770)
- Use Numba dispatcher stack for implementing device context numba-dpex#278
- Changes to the dispacther to support dispacthing based on dpctl device_context numba-dpex#271 - update numba-dppy to new solution
- Patch for support numba-dppy
with device_contextnumba/numba#6899
- Use TargetDispatcher from numba_dppy #118 @PokhodenkoSA - update for moving to
- Patch for lowering #98 @reazulhoque @AlexanderKalistratov @DrTodd13 - reviewed - redesign and upstream
- Patch for change numpy functions mapping #99 @reazulhoque - reviewed - redesign and upstream - 2 separate changes
- Patch for addrspace #92 @DrTodd13 @reazulhoque - reviewed - discussion and upstream
- Initial support for Numpy subclasses (for dparray) - common branch on top of patched #139 (Initial support for Numpy subclasses (for dparray) #116) @DrTodd13 @PokhodenkoSA
- Refactoring ParforDiagnostics #135 (f.k.a. Refactoring ParforDiagnostics #130) @1e-to @PokhodenkoSA - could be upstreamed
All upstream patches has label https://github.com/numba/numba/labels/dpPy.
PRs which should me moved to numba-dppy package:
- Move tests for numba-dppy #102 @PokhodenkoSA - reviewed with @reazulhoque
- Move conda recipe to
numba-dppy#109 @PokhodenkoSA - reviewed with @reazulhoque - Move build_for_develop.sh to
numba-dppy#110 @PokhodenkoSA - reviewed with @reazulhoque - Move README.rst and HowTo.rst to
numba-dppy#107 @PokhodenkoSA - reviewed with @reazulhoque - Move support for dpNP #103 @PokhodenkoSA - reviewed with @reazulhoque
- Move dppl_config.py to numba-dppy #106 @PokhodenkoSA @reazulhoque - reviewed - remove code, design error handling in
numba-dppy - Extension point: numba config options #93 @PokhodenkoSA @reazulhoque - reviewed - need to be moved
- Delete numba/dppl after moving to numba-dppy/numba_dppy with all history #111 @PokhodenkoSA - moving
numba/dppl- delete it after all other PRs - Patch for parallel option "offload" #105 @DrTodd13 @AlexanderKalistratov @reazulhoque - reviewed - remove it but need work prior apply
- Uncomment require_global_compiler_lock() #120 @reazulhoque @DrTodd13 - need fixes in
numba-dppy
Process current PRs to numba:
- Add flags to generate dbg symbols #119 @akharche - moved to Add flags to generate debug symbols numba-dpex#27
- Initial support for Numpy subclasses (for dparray) #116 @DrTodd13 @PokhodenkoSA - move part to
numba-dppy
Patched version: #124
How to see our changes: git diff release0.51..pydppl
Recommended way of development now:
- Create conda environment
- Clone https://github.com/IntelPython/dpctl from branch master. Call:
python setup.py develop. - Clone https://github.com/IntelPython/numba from branch patched. Call:
python setup.py develop. - Clone https://github.com/IntelPython/numba-dppy from branch main. Call:
python setup.py develop. - Install required conda packages if
python setup.py developshows that some packages are not installed.
Branches status
patched- containsrelease0.51branch, minimal set of patches.pydppl- contains all history, code similar topatched,numba-dppysubtree.clean- contains all history, all patches removed,numba-dppysubtree removed - code the same asrelease0.51patched-history- containsclean, minimal set of patches.
You should target your PRs to patched branch, because it is simpler than pydppl but contains the same code.
Metadata
Metadata
Assignees
Labels
No labels
Activity
PokhodenkoSA commentedon Nov 2, 2020
Related #51 - closed by #86.
PokhodenkoSA commentedon Nov 12, 2020
From @diptorupd:
dpCtlis installed andnumba-dppyis not?numba-dppywill understand thatIntelPython/numbais installed?PokhodenkoSA commentedon Dec 2, 2020
I need a way to build new package with all modifications (i.e. removing
numba.dpplfolder) but make it different from packages we build before. Build number I think is not visible enough. Using next version 0.51.3 loses connection to base Numba version. Using 0.51.2rc1 is also not related to upstream version. Possibly, introducing new end number 0.51.2.1 is ok. Also it is pretty close in goal to buildnumber but more visible.PokhodenkoSA commentedon Dec 16, 2020
We decided to use build number which is significantly different from previous one. I.e. use build number 20 when the last one was 12.
reazulhoque commentedon Feb 11, 2021
Update:
PRs with patches (after refactoring it could be proposed to upstream, it is for starting discussion about this changes):
numba-dppyufunc_dbvia context numba/numba#6467replace_functions_mapvia PreParforPass instance numba/numba#6468PokhodenkoSA commentedon Mar 31, 2021
@reazulhoque why did you decide to make a copy of part of description and do not modify description itself?
reazulhoque commentedon Mar 31, 2021
I intended to update the ticket. Modifying the descripton would change the original and stops from keeping versions and updates separate.