numba / numba

NumPy aware dynamic Python compiler using LLVM
https://numba.pydata.org/
BSD 2-Clause "Simplified" License
9.6k stars 1.11k forks source link

Global flag to prefer 32bit whenever possible #9580

Open mnielsm opened 1 month ago

mnielsm commented 1 month ago

Because of speed and because I don't need the 64bit accuracy I declare allconstants with numba.types.float32 and numba.types.int32 but this is quite cumbersome if i need to do it everywhere

Would it be possible to add a global flag to request numba to declare constants as 32bit by default instead of 64bit and to prefer 32bit functions as much as possible.

gmarkall commented 1 month ago

Related: #7613

gmarkall commented 1 month ago

Work on alternative typing systems also being done in #9513 and #9548.

dlee992 commented 1 month ago

also tag with #9409 meta issue.