Commit 442e46f
* Implements dedicated __ipow__ kernel
* Implements in-place remainder
* Implements in-place bitwise_and and bitwise_or
* Implements in-place bitwise_xor
* Implements in-place bitwise_left_shift and bitwise_right_shift
* Adds tests for in-place bitwise elementwise funcs
* Added tests for in-place remainder and pow
Fixed in-place remainder for devices that do not support 64-bit floating point data types
* Test commit splitting up elementwise functions
* Added missing includes of common_inplace
* Split elementwise functions into two more files and added them to the build
* Fix more missing includes
* Splits elementwise functions into separate source files
* Corrected numbers of elementwise functions
* Added missing vector include to elementwise function source files
Removed utility include
* Remove variable name in function declaration
* No need to import init functions into namespace, since they are defined in it
Removed "using dpctl::tensor::py_internal::init_abs`, since this imports `init_abs`
into the current namespace from `dpctl::tensor::py_internal`, but this namespace is
the current namespace and so the import is a no-op.
Also added brief docstring for the common init module.
* Changed use of "static inline" for utility functions
Instead, moved common functions into anonymous namespace as inline,
which is C++ way of expressing that multiple definitions of the same
function may exist in different C++ translation units, which linker
unifies.
* Moved inline functions into separate translation units
Instead of using inline keyword to allow multiple definitions of the same function
in different translation units, introduced elementwise_functions_type_utils.cpp
that defines these functions and a header file to use in other translatioon units.
This should reduce the binary size of the produced object files and simplify the
linker's job reducing the link-time.
* Added license header for 2 new files
---------
Co-authored-by: Oleksandr Pavlyk <oleksandr.pavlyk@intel.com>
1 parent 386bd8b commit 442e46f
File tree
163 files changed
+14358
-5201
lines changed- dpctl
- tensor
- libtensor
- include/kernels/elementwise_functions
- source
- elementwise_functions
- tests/elementwise
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
163 files changed
+14358
-5201
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
33 | 105 | | |
34 | 106 | | |
35 | 107 | | |
| |||
47 | 119 | | |
48 | 120 | | |
49 | 121 | | |
50 | | - | |
51 | 122 | | |
52 | 123 | | |
53 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
54 | 128 | | |
55 | 129 | | |
56 | 130 | | |
| |||
63 | 137 | | |
64 | 138 | | |
65 | 139 | | |
66 | | - | |
67 | 140 | | |
68 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
69 | 145 | | |
70 | 146 | | |
71 | 147 | | |
| |||
76 | 152 | | |
77 | 153 | | |
78 | 154 | | |
79 | | - | |
| 155 | + | |
| 156 | + | |
80 | 157 | | |
81 | 158 | | |
82 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| 334 | + | |
333 | 335 | | |
334 | 336 | | |
335 | 337 | | |
| |||
393 | 395 | | |
394 | 396 | | |
395 | 397 | | |
| 398 | + | |
396 | 399 | | |
397 | 400 | | |
398 | 401 | | |
| |||
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
| 431 | + | |
428 | 432 | | |
429 | 433 | | |
430 | 434 | | |
| |||
459 | 463 | | |
460 | 464 | | |
461 | 465 | | |
| 466 | + | |
462 | 467 | | |
463 | 468 | | |
464 | 469 | | |
| |||
1178 | 1183 | | |
1179 | 1184 | | |
1180 | 1185 | | |
1181 | | - | |
| 1186 | + | |
1182 | 1187 | | |
1183 | 1188 | | |
1184 | 1189 | | |
| |||
1208 | 1213 | | |
1209 | 1214 | | |
1210 | 1215 | | |
1211 | | - | |
| 1216 | + | |
1212 | 1217 | | |
1213 | 1218 | | |
1214 | 1219 | | |
| |||
1266 | 1271 | | |
1267 | 1272 | | |
1268 | 1273 | | |
1269 | | - | |
| 1274 | + | |
1270 | 1275 | | |
1271 | 1276 | | |
1272 | 1277 | | |
| |||
1361 | 1366 | | |
1362 | 1367 | | |
1363 | 1368 | | |
1364 | | - | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1365 | 1374 | | |
1366 | 1375 | | |
1367 | | - | |
| 1376 | + | |
1368 | 1377 | | |
1369 | 1378 | | |
1370 | 1379 | | |
| |||
1443 | 1452 | | |
1444 | 1453 | | |
1445 | 1454 | | |
1446 | | - | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
1447 | 1460 | | |
1448 | 1461 | | |
1449 | 1462 | | |
| |||
1501 | 1514 | | |
1502 | 1515 | | |
1503 | 1516 | | |
1504 | | - | |
| 1517 | + | |
1505 | 1518 | | |
1506 | 1519 | | |
1507 | 1520 | | |
| |||
1654 | 1667 | | |
1655 | 1668 | | |
1656 | 1669 | | |
1657 | | - | |
| 1670 | + | |
1658 | 1671 | | |
1659 | 1672 | | |
1660 | 1673 | | |
| |||
Lines changed: 139 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
260 | 399 | | |
261 | 400 | | |
262 | 401 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments