orome
orome

Reputation: 48466

Can I use Numba on OS X?

Numa requires llvmlite, which only works with LLVM up to version 3.7.1. But my version of LLVM, according to llvm-gcc -v is

Apple LLVM version 7.3.0 (clang-703.0.29)

Is this version incompatible with llvmlite? Is Apple's versioning different from the scheme the llvmlite docs are referring to? Are LLVM and LLVM-GCC numbered differently? If so how do I find what version of LLVM (as llvmlite is referring to) I have?

How can I use llvmlite, and thus Numba, on OS X (without Conda)?

Upvotes: 1

Views: 651

Answers (1)

donkey
donkey

Reputation: 4363

First, I think the best is to install a standalone LLVM through brew. Because XCode always upgrades and Apple LLVM will eventually give up LLVM 3.7.* (Maybe they already did, because 3.8 came out 2016/03/18)

Then, I found this source code of the outdated version Apple LLVM 7.0, which is available via this link. Also from this answer, you can find out that Apple LLVM 7.0 uses 3.7.0svn of LLVM.

I think I can translate your question into "What version of LLVm is Apple LLVM version 7.3.0(clang-703.0.29) based on?"

Apple LLVM 7.0 is based on 3.7.0 since 2015/04/21.

Apple skipped 7.1 and 7.2 and went straight to LLVM 7.3.

This is the release notes of llvm 3.7.1 on 2015/01/05. and 3.8.0 on 2016/03/18, before the date Apple LLVM 7.0 is released.

Therefore, Apple LLVM 7.3, being a later version, is highly likely using LLVM beyond 3.7.1, even 3.8, so you know. But the source code is not available on their opensource website yet. We can't tell exactly.

Hope this helps.

Upvotes: 2

Related Questions