Skip to content

Move numba/dppl to numba_dppy with all history #2

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

Merged
merged 339 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
339 commits
Select commit Hold shift + click to select a range
fe0ee2b
(numba/dppy) Fix compile_for_parfor
Jan 14, 2020
968199c
(numba/dppy) Add PA examples.
Jan 14, 2020
e43992e
(numba/dppy) Drop the *_glue from all function names.
Jan 14, 2020
d43ef1e
(numba/dppy) Added initialization of env structs and check if env was…
reazulhoque Jan 14, 2020
c3c5abc
(numba/dppy) Added try and except to deal with device not found excep…
reazulhoque Jan 14, 2020
244dd67
(numba/dppy) Remove commented out code.
Jan 14, 2020
2412c09
(numba/dppy) Adding pairwise distance test case
Jan 15, 2020
213f307
(numba/dppy) Do not use shell=True inside check_call. Identified by b…
Jan 16, 2020
fdfba1a
(numba/dppy) Merge branch 'devel' of github.intel.com:SAT/NUMBA-PVC i…
Jan 16, 2020
35c4281
(numba/dppy) Reduction work-in-progress. Passing reduction var init …
DrTodd13 Jan 16, 2020
9a2cf57
(numba/dppy) Adding the max work group size as an item stored in the …
DrTodd13 Jan 16, 2020
a3b0dbe
(numba/dppy) change name of OCL to DPPY.
Jan 23, 2020
f670a36
(numba/dppy) Add debug prints to opencllite.c
Jan 23, 2020
1094660
(numba/dppy) Updates to pairwise_distance_ocl.py example.
Jan 23, 2020
13b4b56
(numba/dppy) Added helper functions
reazulhoque Jan 23, 2020
29c0996
(numba/dppy) Added biolerplate code to get started with adding unit t…
reazulhoque Jan 23, 2020
f73425c
(numba/dppy) Updated renamed function calls in vector_add.c
reazulhoque Jan 27, 2020
7df99d9
(numba/dppy) Remove dead codes and typos.
Jan 27, 2020
78a892d
(numba/dppy) Merge branch 'devel' of github.intel.com:SAT/NUMBA-PVC i…
Jan 27, 2020
e863528
(numba/dppy) Minor formatting change and remove incorrect comment.
Jan 27, 2020
fef42f7
(numba/dppy) Add dump functions to driver classes.
Jan 27, 2020
e5a246b
(numba/dppy) Minor formatting changes.
Jan 27, 2020
fe6c522
(numba/dppy) Rename dppy.jit to dppy.kernel
Jan 28, 2020
cab6cdb
(numba/dppy) Update the sum.py example to use dppy.kernel
Jan 28, 2020
d2e75d0
(numba/dppy) Add two variants of sum.py for feature testing.
Jan 28, 2020
dcc9d4b
(numba/dppy) Rename AutoJitDPPyKernel to JitDPPyKernel.
Jan 28, 2020
4cf55bc
(numba/dppy) conver EOL from windows to unix.
Jan 28, 2020
8884505
(numba/dppy) Remove commented out code.
Jan 28, 2020
8cc2f7c
(numba/dppy) dump_do_kernel_info should always print the kernel funct…
Jan 28, 2020
17c9297
(numba/dppy) Trun off caching of compiled kernels for the time being.
Jan 28, 2020
b1885f4
(numba/dppy) Add another version of vector addition.
Jan 28, 2020
e0f5b7b
(numba/dppy) First test to perform sum on both CPU and GPU device
reazulhoque Jan 28, 2020
54282cd
(numba/dppy) Added attributes to decorator for access_type
reazulhoque Jan 28, 2020
de3748d
(numba/dppy) Added example using access_type for input parameter
reazulhoque Jan 28, 2020
79cd23a
(numba/dppy) Use same data layout string as clang.
Jan 28, 2020
44c7030
(numba/dppy) Added support for basic datatypes like int, flot, double…
reazulhoque Jan 30, 2020
c59106c
(numba/dppy) Added check to make sure users know we do not support ke…
reazulhoque Feb 3, 2020
0a92b70
(numba/dppy) Unit test case for testing math routines.
Feb 3, 2020
b63aa4d
(numba/dppy) Remove unwanted lines
reazulhoque Feb 3, 2020
c33d68d
(numba/dppy) Added support for basic datatypes
reazulhoque Feb 3, 2020
f33dcdf
(numba/dppy) Fixed converting all int to long
reazulhoque Feb 3, 2020
d7f9953
(numba/dppy) Break long line into 80 chars
reazulhoque Feb 3, 2020
18c54ca
(numba/dppy) add test to make sure accessors are working
reazulhoque Feb 3, 2020
a1a1c62
(numba/dppy) Merge pull request #20 from SAT/feature/numba_array
Feb 3, 2020
6f71b53
(numba/dppy) Explicit error message for error code -54.
Feb 3, 2020
a6d712f
(numba/dppy) Remove meminfo argument.
Feb 3, 2020
7d270ca
(numba/dppy) Fix error check macro.
Feb 3, 2020
5d3eb4b
(numba/dppy) Add a 2D vector sum example.
Feb 3, 2020
3886c21
(numba/dppy) Merge branch 'devel' of github.intel.com:SAT/NUMBA-PVC i…
Feb 4, 2020
55483b6
(numba/dppy) Changes to modify how OpenCL global and local sizes are …
Feb 4, 2020
a1ffc55
(numba/dppy) Merge branch 'devel' into two-dimensional-kernels
Feb 4, 2020
e62b604
(numba/dppy) Generate executables with .exe suffix. Add *.exe to giti…
Feb 4, 2020
c92021e
(numba/dppy) Change to unix EOL.
Feb 4, 2020
ad0ef7d
(numba/dppy) Update examples...
Feb 4, 2020
29bdc34
(numba/dppy) Make sure we are treating single int for global_work_size
reazulhoque Feb 4, 2020
d5be001
(numba/dppy) Add Black Scholes test
reazulhoque Feb 4, 2020
1ab5134
(numba/dppy) Added sum reduction test
reazulhoque Feb 5, 2020
3608b48
(numba/dppy) Updated pairwise_distance example
reazulhoque Feb 5, 2020
f15479a
(numba/dppy) Make debug build an option
reazulhoque Feb 5, 2020
893daae
(numba/dppy) Cleanedup llvm-spirv and spirv-tools requirements.
reazulhoque Jan 17, 2020
137a252
(numba/dppy) Added conda_env_path to ensure using the right binaries
reazulhoque Jan 23, 2020
c7e7049
(numba/dppy) Fix Error Msg
reazulhoque Jan 23, 2020
9565dd6
(numba/dppy) Remove Conda prefix to ensure correct bin
reazulhoque Jan 23, 2020
ce91db9
(numba/dppy) Remove files added accidentally
reazulhoque Feb 6, 2020
28dcc16
(numba/dppy) Updated global_wirk_size and local_work_size
reazulhoque Feb 6, 2020
af5185e
(numba/dppy) Reformat long comment.
Feb 10, 2020
2cb9c75
(numba/dppy) Merge branch 'devel' into ms138-directives
Feb 10, 2020
f3e3ffb
(numba/dppy) Remove errors.py from DPPy
reazulhoque Feb 10, 2020
6ab880e
(numba/dppy) Remove errors.py
reazulhoque Feb 10, 2020
6fa9fb8
(numba/dppy) Remove errors.py from DPPy
reazulhoque Feb 10, 2020
155e280
(numba/dppy) Merge branch 'ms138-directives' of https://github.intel.…
reazulhoque Feb 10, 2020
cc93110
(numba/dppy) Add dppy test to NUMBA test suite
reazulhoque Feb 10, 2020
df2c0de
(numba/dppy) Remove enums.py from DPPy
reazulhoque Feb 10, 2020
fa6e213
(numba/dppy) Add option to dump intermediate IR files
reazulhoque Feb 10, 2020
1f58500
(numba/dppy) Moved flag to numba level
reazulhoque Feb 10, 2020
36e3e56
(numba/dppy) Remove not needed comments
reazulhoque Feb 11, 2020
f5743a0
(numba/dppy) Make argument optional
reazulhoque Feb 11, 2020
7d93c74
(numba/dppy) Added HowTo and reduction in examples
reazulhoque Feb 13, 2020
044e3be
(numba/dppy) Added DPPy pipeline
reazulhoque Feb 18, 2020
df9a753
(numba/dppy) Merge branch 'ms138-directives' into spir-codegen
Feb 18, 2020
1520ade
(numba/dppy) Refactoring for coding style.
Feb 19, 2020
752c4e2
(numba/dppy) Refactoring for coding style.
Feb 19, 2020
48a8a5c
(numba/dppy) Added test to measure time of 1d reductions in different…
reazulhoque Feb 24, 2020
6eab8ee
(numba/dppy) Added reduction plus scaling test
reazulhoque Feb 24, 2020
4e1ddfd
(numba/dppy) Added sync before timing
reazulhoque Feb 25, 2020
4405dbe
(numba/dppy) Include time to get data back
reazulhoque Feb 25, 2020
28f8a7d
(numba/dppy) Changes for reductions including addrspaces for vars.
DrTodd13 Feb 26, 2020
6080fdc
(numba/dppy) Merge remote-tracking branch 'old/anl_release_v01' into …
reazulhoque Feb 28, 2020
554980a
(numba/dppy) Added installation inside setup.py
reazulhoque Mar 2, 2020
ede408b
(numba/dppy) Added changes to build conda package for linux
reazulhoque Mar 3, 2020
c0c2daf
(numba/dppy) Fixed getting lib so intall and develop both works
reazulhoque Mar 3, 2020
aee94a2
(numba/dppy) Merge branch 'devel' into ms138-directives
Mar 4, 2020
fd0bd3f
(numba/dppy) Merge branch 'ms138-directives' into spir-codegen
Mar 4, 2020
d7d224a
(numba/dppy) Added recursive reduction example
reazulhoque Mar 4, 2020
16a3f9e
(numba/dppy) Refactor code to add a DPPy-specific lowerinbg pass.
Mar 9, 2020
62913c7
(numba/dppy) Move an optimization level down and get rid of some addr…
reazulhoque Mar 10, 2020
36fff6c
(numba/dppy) Add function attribute to always inline in LLVM ir
reazulhoque Mar 10, 2020
813a07d
(numba/dppy) Added flag to turn spirv-val ON/OFF
reazulhoque Mar 10, 2020
c11e44c
(numba/dppy) Change how flag values work
reazulhoque Mar 11, 2020
bb21fd7
(numba/dppy) Remove extra print
reazulhoque Mar 11, 2020
f485eed
(numba/dppy) Increase test precision
reazulhoque Mar 11, 2020
fb12d1f
(numba/dppy) Update examples
reazulhoque Mar 16, 2020
f209d71
(numba/dppy) Adding a basic square matrix multiply example.
Mar 16, 2020
11517e8
(numba/dppy) Initial fix to get to the lowering pass using dppy_compi…
reazulhoque Mar 20, 2020
ec85e8a
(numba/dppy) Added dppy lowerer and dppy lowerer for arrayexpr
reazulhoque Mar 25, 2020
4bf1769
(numba/dppy) Inherit from Lower
reazulhoque Mar 26, 2020
7fa5e12
(numba/dppy) Added DPPy target in njit
reazulhoque Mar 31, 2020
712b75b
(numba/dppy) Added numpy_math_functions test and made numpy.add() work
reazulhoque Apr 1, 2020
4edb62e
(numba/dppy) Added the working math and trigonometric NumPy function …
reazulhoque Apr 3, 2020
4a6b345
(numba/dppy) Replacing numpy ufuncs with OpenCL functions where possi…
reazulhoque Apr 6, 2020
a5e6f5b
(numba/dppy) Addd test for numpy floating and bit-twiddling functions
reazulhoque Apr 7, 2020
0468d56
(numba/dppy) Addd test for numpy comparison functions
reazulhoque Apr 8, 2020
6f51245
(numba/dppy) Remove unused code.
Apr 8, 2020
bf72cec
(numba/dppy) njit with parallel options will go through dppy pipeline
reazulhoque Apr 9, 2020
394a3a5
(numba/dppy) MAde sure parallel flag is only activated when provided …
reazulhoque Apr 9, 2020
3050652
(numba/dppy) Correct njit flag behavior
reazulhoque Apr 13, 2020
7d44024
(numba/dppy) remove dppy dispatcher and create a new file cpu_dispatc…
reazulhoque Apr 16, 2020
2fe8f09
(numba/dppy) Remove dppy backend (#44)
reazulhoque Apr 16, 2020
20b3b0c
(numba/dppy) Propagate CPUDispatcher being moved from targets/registry
reazulhoque Apr 17, 2020
077e7a5
(numba/dppy) Merge Devel
reazulhoque Apr 17, 2020
73ea449
(numba/dppy) Initial cleaning of dppy_lowering
reazulhoque Apr 17, 2020
e2eea07
(numba/dppy) Clean up of call_dppy()
reazulhoque Apr 21, 2020
58a8aad
(numba/dppy) Merge branch 'ms138-directives' into ms138-refactoring
Apr 23, 2020
4c7e815
(numba/dppy) Remove oll dppy_driver from numba.
Apr 23, 2020
555262f
(numba/dppy) convert the file to unix encoding.
Apr 23, 2020
432edf7
(numba/dppy) Convert to Unix encoding.
Apr 23, 2020
2832e79
(numba/dppy) Formatting changes...
Apr 23, 2020
e72897a
(numba/dppy) Refactor the code.
Apr 23, 2020
d0a0823
(numba/dppy) Some vectorize inliner is working
reazulhoque Apr 23, 2020
d2b92d2
(numba/dppy) More formatting changes...
Apr 23, 2020
48eb0f3
(numba/dppy) Run dos2unix on dppy_lowerer_2.py. Otherwise Eclipse on …
Apr 23, 2020
3e9b94f
(numba/dppy) Merge branch 'ms138-directives' into ms138-refactoring
Apr 23, 2020
8b19bc7
(numba/dppy) Move DUFunc inliner into a new file and fix a bug. Black…
Apr 24, 2020
d0a8546
(numba/dppy) Remove pass that is now called dufunc_inliner
reazulhoque Apr 24, 2020
b2261c0
(numba/dppy) Added vectorize test
reazulhoque Apr 24, 2020
cef85f1
(numba/dppy) Minor code style and function renaming.
Apr 24, 2020
6cf5566
(numba/dppy) Merge branch 'ms138-directives' of github.intel.com:SAT/…
Apr 24, 2020
283ca05
(numba/dppy) Remove limit on numpy dimensions with simple loop schedu…
reazulhoque Apr 24, 2020
503b5ab
(numba/dppy) Fix indent calculation and 5d array example
reazulhoque Apr 24, 2020
c28cfad
(numba/dppy) remove variable for constant
reazulhoque Apr 27, 2020
5e35f79
(numba/dppy) Move code hoisting and dppy function call generation to …
Apr 27, 2020
f4bca27
(numba/dppy) Remove suferfluous prints.
Apr 27, 2020
54a64cd
(numba/dppy) Minor formatting changes.
Apr 27, 2020
efe7b0a
(numba/dppy) Rename dppy_lower_2 to dppy_lowerer
Apr 27, 2020
7b3bd17
(numba/dppy) add missing code from the original dppy_lowerer.py.
Apr 27, 2020
8d9af06
(numba/dppy) Support for atomic add (#46)
reazulhoque May 1, 2020
b591d14
(numba/dppy) Ms138 directives (#52)
reazulhoque May 1, 2020
6dfe641
(numba/dppy) DPPY tests are passing
reazulhoque May 13, 2020
6775ddf
(numba/dppy) Feature/dppy func (#67)
reazulhoque Jun 4, 2020
87f35d7
(numba/dppy) revert changes in dufunc to allow tests to pass
reazulhoque Jun 5, 2020
e9c15d3
(numba/dppy) DPPy target will retain a copy of ufunc_db for replacing…
reazulhoque Jun 8, 2020
132bb2a
(numba/dppy) Added print to dppy.kernel (#69)
reazulhoque Jun 8, 2020
e57e5d3
(numba/dppy) Fix encoding of file from dos to unix. (#70)
Jun 10, 2020
d18b2a2
(numba/dppy) Add caching (#60)
Jun 10, 2020
b4f99ef
(numba/dppy) Adds support for local memory allocation inside dppy.ker…
reazulhoque Jun 23, 2020
b2515d9
(numba/dppy) Fix generation of the gufunc function name for parfors t…
Jun 23, 2020
a59f210
(numba/dppy) Migration to Numba 0.49 (#57)
PokhodenkoSA Jun 24, 2020
b344011
(numba/dppy) Merge branch 'devel' into 49.1
reazulhoque Jun 24, 2020
eb4dcd1
(numba/dppy) Update files with changes required to make them compatib…
reazulhoque Jun 24, 2020
c05dc4a
(numba/dppy) Updated to use sycllite branch from dppy-backend
reazulhoque Jun 29, 2020
c67fa1b
(numba/dppy) Rename to dppy (#86)
reazulhoque Jun 30, 2020
0f72770
(numba/dppy) Force LLVM to use ZMM registers for vectorization.
PokhodenkoSA Jul 6, 2020
6d73be1
(numba/dppy) Merge branch '49.1-gh' into '49.1'
reazulhoque Jul 6, 2020
e71ad21
(numba/dppy) Merge branch '49.1' into 'devel'
reazulhoque Jul 6, 2020
3060a61
(numba/dppy) Merged devel
reazulhoque Jul 7, 2020
d772507
(numba/dppy) Import ufunc_db only after lazy_init
reazulhoque Jul 7, 2020
d6e6981
(numba/dppy) Added check to not error out if OpenCL is absent
reazulhoque Jul 9, 2020
311186e
(numba/dppy) Fix minor bug
reazulhoque Jul 9, 2020
ad7d95c
(numba/dppy) Rename njit option spirv to offload
reazulhoque Jul 9, 2020
151b501
(numba/dppl) Rename DPPy to DPPL in code.
PokhodenkoSA Jul 10, 2020
4bcd90c
(numba/dppl) Added basic docstrings
reazulhoque Jul 10, 2020
c569f60
(numba/dppl) Update examples and more docstrings
reazulhoque Jul 10, 2020
eb4ac20
(numba/dppl) Update to PyDPPL 0.1.1
PokhodenkoSA Jul 16, 2020
c5f2b1c
(numba/dppl) Added unit test to check dppl apis
reazulhoque Jul 16, 2020
087bdfc
(numba/dppl) Merge branch 'rhoque/update/dppl_api_unit_test' into 'de…
Jul 16, 2020
56a75a8
(numba/dppl) Added atomics for sub and add
reazulhoque Jul 21, 2020
641ca96
(numba/dppl) Add linkd spirv binary
reazulhoque Jul 22, 2020
6e4e01d
(numba/dppl) Initial integration with numba.dppl.atomic.add
reazulhoque Jul 22, 2020
dcfea17
(numba/dppl) Finalize atomic add and sub for 4 datatypes
reazulhoque Jul 29, 2020
3099bc9
(numba/dppl) Made linking with external binaries optional
reazulhoque Jul 30, 2020
4415d2c
(numba/dppl) Atomic functions will be provided by pydppl
reazulhoque Jul 31, 2020
39ca42a
(numba/dppl) Update API and add test for local memory of different da…
reazulhoque Jul 31, 2020
a3f7ff5
(numba/dppl) Added atomic OpenCL kernel that will provide the atomic …
reazulhoque Aug 5, 2020
b0a048d
(numba/dppl) remove comment
reazulhoque Aug 5, 2020
4e6d619
(numba/dppl) Use ctypes.util.find_library for finding DPPLOpenCLInter…
PokhodenkoSA Aug 13, 2020
db9b85e
(numba/dppl) Initial try at calling a c++ function while lowering a f…
reazulhoque Aug 13, 2020
9e9fe84
(numba/dppl) Calling a function using address of it
reazulhoque Aug 18, 2020
ad0c65f
(numba/dppl) Initial integration for calling a Numpy for gpu function
reazulhoque Aug 20, 2020
9cf9f8c
(numba/dppl) Initial fallback implementation
AlexanderKalistratov Aug 14, 2020
8acbe6a
(numba/dppl) Add comments
reazulhoque Aug 31, 2020
9b96efd
(numba/dppl) Added skeleton for argsort, argmax,sum and dotvv
reazulhoque Sep 20, 2020
a625318
(numba/dppl) Add WIP cython layer to interface with dpnp
reazulhoque Sep 22, 2020
01b8f19
(numba/dppl) Retrieving the pointer correctly in cython
reazulhoque Sep 23, 2020
1b8ead5
(numba/dppl) Rename PyDPPL/dppl to dpCtl/dpctl (#49)
PokhodenkoSA Sep 24, 2020
9b2c5b1
(numba/dppl) First stab
reazulhoque Sep 24, 2020
bb12ff3
(numba/dppl) Added file back
reazulhoque Sep 24, 2020
41e8870
(numba/dppl) merge with pydppl
reazulhoque Sep 24, 2020
92d4f38
(numba/dppl) Updated cov and dot
reazulhoque Sep 25, 2020
0c58e53
(numba/dppl) WIP added scalar args and submit
reazulhoque Sep 29, 2020
b4e7863
(numba/dppl) Added separate dispatcher (#42)
1e-to Sep 29, 2020
5cb0b3b
(numba/dppl) Added passing scalar to sycl backend
reazulhoque Sep 30, 2020
e07e122
(numba/dppl) Sending reverse of global and local size to address sema…
reazulhoque Sep 30, 2020
e1844a8
(numba/dppl) Added parfor lower message (#43)
1e-to Oct 1, 2020
9212f14
(numba/dppl) Updated all examples and tests to use the new sycl backe…
reazulhoque Oct 1, 2020
ce2c8dd
(numba/dppl) Added exlicit usm creation
reazulhoque Oct 2, 2020
c963ba7
(numba/dppl) WIP
reazulhoque Oct 2, 2020
bd32196
(numba/dppl) Added llvm generation for new backend
reazulhoque Oct 2, 2020
8a150e2
(numba/dppl) Merge branch 'pydppl' of https://github.com/reazulhoque/…
reazulhoque Oct 2, 2020
1f2f9a0
(numba/dppl) Semantics "with context" (#57)
1e-to Oct 2, 2020
2179760
(numba/dppl) Fixed incorrect LLVM IR generation
reazulhoque Oct 2, 2020
4f0db9b
(numba/dppl) Merge branch 'pydppl' into feature/sycl_integration
reazulhoque Oct 2, 2020
ced1b0e
(numba/dppl) WIP
reazulhoque Oct 2, 2020
1880b79
(numba/dppl) LLVM generation working
reazulhoque Oct 2, 2020
30be033
(numba/dppl) Cleanup
reazulhoque Oct 3, 2020
efb3eca
(numba/dppl) File name modification
reazulhoque Oct 3, 2020
0ef3adf
(numba/dppl) Freeing the usm buffer being allocated
reazulhoque Oct 3, 2020
fc54c72
(numba/dppl) Merged pydppl
reazulhoque Oct 4, 2020
7f730a5
(numba/dppl) Merge branch 'feature/sycl_integration' into feature/exp…
reazulhoque Oct 4, 2020
38d01bd
(numba/dppl) successfully calling dpnp
reazulhoque Oct 4, 2020
792d753
(numba/dppl) Added more np functions
reazulhoque Oct 4, 2020
01c702f
(numba/dppl) Move addition to typing templates of existing Numpy func…
reazulhoque Oct 4, 2020
c377962
(numba/dppl) Add check in setting lower extension
reazulhoque Oct 4, 2020
8178e74
(numba/dppl) Added multidimensional test
reazulhoque Oct 4, 2020
721efee
(numba/dppl) Add bool
reazulhoque Oct 5, 2020
267e2bd
(numba/dppl) Added unload pass to undo the overloading
reazulhoque Oct 5, 2020
3702047
(numba/dppl) Fix context
Oct 5, 2020
2dffa68
(numba/dppl) Fix for dpctl update
reazulhoque Oct 6, 2020
80424a0
(numba/dppl) Merge branch 'feature/sycl_integration' into feature/exp…
reazulhoque Oct 6, 2020
cfaf1f2
(numba/dppl) Merge with feature/experimental_numpy_for_gpu
reazulhoque Oct 6, 2020
79b1490
(numba/dppl) small update to documentation
reazulhoque Oct 6, 2020
db13bee
(numba/dppl) Merge branch 'feature/sycl_integration' into feature/exp…
reazulhoque Oct 6, 2020
1d8c311
(numba/dppl) Merge branch 'feature/experimental_numpy_for_gpu' into f…
reazulhoque Oct 6, 2020
f617061
(numba/dppl) Turn off debug mode after test
Oct 6, 2020
2299046
(numba/dppl) Fix getting dpctl lib at runtime
reazulhoque Oct 6, 2020
0a5e0d6
(numba/dppl) Merge branch 'pydppl' into feature/sycl_integration
reazulhoque Oct 6, 2020
5bc88be
(numba/dppl) Merge branch 'pydppl' into feature/experimental_numpy_fo…
reazulhoque Oct 6, 2020
a7039db
(numba/dppl) Skip if dpnp is not present
reazulhoque Oct 7, 2020
556ec97
(numba/dppl) Merge branch 'feature/experimental_numpy_for_gpu' into f…
reazulhoque Oct 7, 2020
20a3b82
(numba/dppl) skip tests if atomic support is not present
reazulhoque Oct 7, 2020
e34c9dd
(numba/dppl) Add check if dpctl is present in decorator.
AlexanderKalistratov Oct 7, 2020
6a2716c
(numba/dppl) Turn lower_extension into a stack for parfor
reazulhoque Oct 8, 2020
1492a13
(numba/dppl) Merge pull request #66 from AlexanderKalistratov/akalist…
reazulhoque Oct 8, 2020
fb9c310
(numba/dppl) Fix ir copy in fallback (#61)
AlexanderKalistratov Oct 8, 2020
0539b82
(numba/dppl) Fix dppl_with_context example
AlexanderKalistratov Oct 8, 2020
fa996e3
(numba/dppl) Copy ir & funcdesc using same cache. Introduce new funct…
AlexanderKalistratov Oct 20, 2020
d5ddf3d
Add 'oneapi/' from commit 'c5b19175dfdef645dc7478b6e470340abb11201a'
PokhodenkoSA Nov 11, 2020
c144045
Add 'dppy/' from commit 'ad7d95cffb7513717b2b96545475f16d394ddb21'
PokhodenkoSA Nov 11, 2020
57b6890
Add 'dppl/' from commit 'fa996e3adbfef446d97c4f3b7f6565f57abc9e40'
PokhodenkoSA Nov 11, 2020
d1acbb0
Add 'numba_dppy/' from commit 'fa996e3adbfef446d97c4f3b7f6565f57abc9e40'
PokhodenkoSA Nov 11, 2020
1081eae
Remove history folders: oneapi, dppy, dppl
PokhodenkoSA Nov 11, 2020
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
3 changes: 3 additions & 0 deletions numba_dppy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.bc
*.ll
*.spirv
7 changes: 7 additions & 0 deletions numba_dppy/CHANGE_LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NUMBA Version 0.48.0 + DPPL Version 0.3.0 (June 29, 2020)
--------------------------------------------------------

This release includes:

* Caching of dppl.kernels which will improve performance.
* Addition of support for Intel Advisor which will help in profiling applications.
519 changes: 519 additions & 0 deletions numba_dppy/__init__.py

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions numba_dppy/codegen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
from llvmlite import binding as ll
from llvmlite.llvmpy import core as lc

from numba.core.codegen import BaseCPUCodegen, CodeLibrary
from numba.core import utils


SPIR_TRIPLE = {32: ' spir-unknown-unknown',
64: 'spir64-unknown-unknown'}

SPIR_DATA_LAYOUT = {
32 : ('e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:'
'256-v512:512-v1024:1024'),
64 : ('e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-'
'v512:512-v1024:1024')
}


class SPIRVCodeLibrary(CodeLibrary):
def _optimize_functions(self, ll_module):
pass

def _optimize_final_module(self):
# Run some lightweight optimization to simplify the module.
pmb = ll.PassManagerBuilder()
pmb.opt_level = 1
pmb.disable_unit_at_a_time = False
pmb.disable_unroll_loops = True
pmb.loop_vectorize = False
pmb.slp_vectorize = False

pm = ll.ModulePassManager()
pmb.populate(pm)
pm.run(self._final_module)

def _finalize_specific(self):
# Fix global naming
for gv in self._final_module.global_variables:
if '.' in gv.name:
gv.name = gv.name.replace('.', '_')

def get_asm_str(self):
# Return nothing: we can only dump assembler code when it is later
# generated (in numba.dppl.compiler).
return None


class JITSPIRVCodegen(BaseCPUCodegen):
"""
This codegen implementation generates optimized SPIR 2.0
"""

_library_class = SPIRVCodeLibrary

def _init(self, llvm_module):
assert list(llvm_module.global_variables) == [], "Module isn't empty"
self._data_layout = SPIR_DATA_LAYOUT[utils.MACHINE_BITS]
self._target_data = ll.create_target_data(self._data_layout)

def _create_empty_module(self, name):
ir_module = lc.Module(name)
ir_module.triple = SPIR_TRIPLE[utils.MACHINE_BITS]
if self._data_layout:
ir_module.data_layout = self._data_layout
return ir_module

def _module_pass_manager(self):
raise NotImplementedError

def _function_pass_manager(self, llvm_module):
raise NotImplementedError

def _add_module(self, module):
pass
Loading