Comments (3)
I'm getting the same error on examples/numexpr_compare.py but examples/example.py works. @bayerj do you get this error for examples/example.py
from numba.
This is my output for example.py, seems valid:
$ py example.py
; ModuleID = 'sinc_mod'
define double @sinc(double %x) {
Entry:
%0 = fcmp oeq double %x, 0.000000e+00
br i1 %0, label %CONT_9, label %IF_FALSE_9
CONT_9: ; preds = %Entry
ret double 1.000000e+00
IF_FALSE_9: ; preds = %Entry
%1 = fmul double %x, 0x400921FB54442D18
%2 = call double @llvm.sin.f64(double %1)
%3 = fmul double 0x400921FB54442D18, %x
%4 = fdiv double %2, %3
ret double %4
RETURN_37: ; No predecessors!
ret double 0.000000e+00
}
declare double @llvm.sin.f64(double) nounwind readonly
0.059888 1.000000 **
; ModuleID = 'sinc_mod'
define double @sinc(double %x) {
Entry:
%0 = fcmp oeq double %x, 0.000000e+00
br i1 %0, label %CONT_9, label %IF_FALSE_9
CONT_9: ; preds = %Entry
ret double 1.000000e+00
IF_FALSE_9: ; preds = %Entry
%1 = fmul double %x, 0x400921FB54442D18
%2 = call double @llvm.sin.f64(double %1)
%3 = fmul double 0x400921FB54442D18, %x
%4 = fdiv double %2, %3
ret double %4
RETURN_37: ; No predecessors!
ret double 0.000000e+00
}
declare double @llvm.sin.f64(double) nounwind readonly
0.059888 1.000000 **
[ 3.89817183e-17 3.96971926e-02 6.64556414e-02 6.80812328e-02
4.15063827e-02 -5.12469250e-03 -5.46515558e-02 -8.68921740e-02
-8.64379535e-02 -4.93794333e-02 1.37553357e-02 8.03754744e-02
1.23178051e-01 1.20247416e-01 6.44510924e-02 -3.13845935e-02
-1.35838264e-01 -2.07001488e-01 -2.05197221e-01 -1.06420158e-01
8.79177183e-02 3.48410566e-01 6.23566834e-01 8.52825194e-01
9.82960198e-01 9.82960198e-01 8.52825194e-01 6.23566834e-01
3.48410566e-01 8.79177183e-02 -1.06420158e-01 -2.05197221e-01
-2.07001488e-01 -1.35838264e-01 -3.13845935e-02 6.44510924e-02
1.20247416e-01 1.23178051e-01 8.03754744e-02 1.37553357e-02
-4.93794333e-02 -8.64379535e-02 -8.68921740e-02 -5.46515558e-02
-5.12469250e-03 4.15063827e-02 6.80812328e-02 6.64556414e-02
3.96971926e-02 3.89817183e-17]
from numba.
This is most likely an issue with LLVM and llvm-py. I saw this exact problem using LLVM version 3.2svn (from the head of the development repository), and it was caused by the intrinsic codes in LLVM mismatching with those in llvm-py's _intrinsic_ids.py. Fixed by regenerating these codes in llvm-py.
You can verify this for yourself by doing a comparison of the output of ".../llvm-py/tools/intrgen.py llvm-config --includedir
/llvm/Intrisics.gen" with the codes in ".../llvm-py/llvm/_intrinsic_ids.py". Note that you might have multiple installations of LLVM, so check the output of llvm-config --version
against the LLVM version you built.
(Sorry about the crappy misuse of the markdown, hopefully this is parse-able.)
from numba.
Related Issues (20)
- TypingError when conditionally shadowing variable HOT 2
- numba.typed.List fails for F-contiguous np.ndarrays if one is also C-contiguous HOT 1
- No implementation of function `Function(<built-in function setitem>)` found for signature: `setitem(readonly array(uint64, 3d, C), int64, array(int64, 1d, C))` HOT 1
- numba.core.errors.CompilerError: Failed in nopython mode pipeline (step: analyzing bytecode) / Illegal IR, del found at: del foo HOT 1
- numpy.std() results differ with and without numba HOT 4
- cumprod method doesn't upcast unsigned integer array
- A tuple of uint64 (> 2**63 but < 2**64) as the key of numba Dict HOT 3
- NumPy 2.0 incompatibility - A use of `np.complex_` still remains
- NumPy 2.0 incompatibility: RNG's `__getstate__()` returns `None`
- Specialized CUDA kernels lose a reference to the cache
- using rtsys in objmode incur pickle issue HOT 8
- nb.optional doesn't work with nb.types.NamedTuple HOT 5
- Caching is useless on higher order functions
- Code, which is never executed, slows down everything by factor 3 HOT 6
- jit wrapped numpy sort & unique is more than 5x slower HOT 9
- Failure in `test_TestPrangeSpecific` HOT 2
- Numba 0.60.0 Checklist HOT 1
- Inverting matrices with large condition numbers HOT 1
- unsupported keyword arguments and type inference unification limitation with `np.maximum` HOT 1
- numba HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numba.