Julia libllvm_system not defined - julia

I am trying to install the packages CUDAnative, CuArrays, and CUDAdrv in Julia.
I'm getting the following error when I write
Pkg.build("CUDAnative")
LoadError: UndefVarError: libllvm_system not defined
Any idea why?
(I am using an Asus Zephyrus G14 with Nvidia RTX 2060 and AMD Ryzen 9)

I've realized that CUDAnative, CuArrays and CUDAdrv packages are deprecated and it is enough to use CUDA.jl only. The problem is arising when I want to install these libraries. They downgrade CUDA.jl to a <1 version.

Please see the CUDAnative docs here: https://juliagpu.gitlab.io/CUDA.jl/installation/conditional/ for details on this issue and troubleshooting steps: https://juliagpu.gitlab.io/CUDA.jl/installation/troubleshooting/.
If you continue to have this issue, please open an issue for the package on GitHub.

Related

Error while trying to add BlossomV package in Julia

I am trying to add the BlossomV package in Julia. I am receiving the following error:
*LoadError: BlossomV not properly installed. Please run Pkg.Build("BlossomV")
LoadError: Failed to precompile BlossomV*
On running Pkg.Build("BlossomV"),
I am getting the following error:
*LoadError: IOError: could not spawn setenv(*A lot of attributes are there here*): no such file or directory (ENOENT)*
I am facing this error on both Windows 10 and Ubuntu.
I would appreciate it if anyone could explain what the issue is and how to solve it. Thank you.
BlossomV.jl is just a wrapper around a C library and I bet it is the process of building the C library that's failing. BlossomV is designed around the old approach to handling binary dependencies. It would be great to either rewrite it using pure Julia, or use the modern "artifact" system which is a vastly more robust way to ship binary dependencies.

How to fix modprobe error from MPSS 4.4.1

Reaching out to the wider group as I am totally stumped trying to install Intel MPSS 4.x for my Xeon Phi 7220P.
I followed the precise steps in this link: Intel MPSS Linux User Guide Rev 4.4.1, and did it 3 times to make sure I wasn't missing any steps or making mistakes, but keep getting the following error readout:
modprobe: WARNING: Module mic_x200_dma not found.
modprobe: WARNING: Module scif_bus not found.
modprobe: WARNING: Module vop_bus not found.
modprobe: WARNING: Module cosm_bus not found.
modprobe: WARNING: Module scif not found.
modprobe: WARNING: Module vop not found.
modprobe: WARNING: Module mic_cosm not found.
modprobe: WARNING: Module mic_x200 not found.
As a result of this, I cant do the basic MPSS commands such as micctrl -s etc nor use the Xeon Phi whatsoever.
I am running Centos 7 (862 kernel), and know its not listed in the Intel pdf, but did not think this should be causing an issue as it seems that the above kernel modules are simply not being installed seemingly from Intel MPSS - but not sure if this diagnosis is correct.
Would appreciate your help - many thanks in advance!
It is complaining about that because at one point your kernel got updated from 3.10.0-514.el7 to a later version, (it happens automatically when you do a yum update, annoying I know)
Check your kernel version by running
uname -r
When you installed/compiled all the modules they were placed into /lib/modules/3.10.0-514.el7.x86_64 which is where the source code you have exported to.
You have 2 options:
Recompile the source code to work for your current kernel version (which is a pain and has it's own problems)
Revert your host kernel back to 3.10.0-514.el7 via grub config (example here) and everything will work nicely
I too struggled with this very much in the beginning and I had to read pretty much every line of source code and spend countless hours debugging until I found out. At this point there is nothing I do not know about the Xeon Phi x100/x200.
The documentation is not bad, but it didn't cover this bare essential, which is frustrating.

Torch / cunn install error - file already has LC_RPATH

I'm trying to install cunn for Torch but make install fails. Cuda is 7.5.27 because 8 doesn't support OSX 10.10 anymore.
I've been trying to debug this for a while, but I'm running out of things to try.
While searching solution I saw few others having a similar problem (https://github.com/TRIQS/cthyb/issues/8, https://github.com/jcjohnson/neural-style/issues/134) but didn't find any solution that would fix this. It seems that this is a general problem related to OSX/Xcode and not necessarily cunn.
All help is much appreciated.
$ luarocks install cunn
...
...
-- Installing: /Users/foo/torch/install/lib/luarocks/rocks/cunn/scm-1/lib/libTHCUNN.so
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for:
/Users/foo/torch/install/lib/luarocks/rocks/cunn/scm-1/lib/libTHCUNN.so (for architecture x86_64) option "-add_rpath /usr/local/cuda/lib"
would duplicate path, file already has LC_RPATH for: /usr/local/cuda/lib
The issue went away when I did ./clean.sh in ~/torch followed by ./update.sh. I still don't have any idea what was the problem.

Opencl clGetPlatformIDs error -1001

I am trying to run some OpenCL programs.
I have a NVidia graphics card (GeForce 6600).
But , when I execute my program and I get a error :
Unable to get platforms -1001
My OS is ArchLinux and I already install the following packages (
from pacman ):
1. libcl
2. opencl-headers
3. opencl-nvidia-304xx
4. lib32-opencl-nvidia-304xx
How to fix this problem in my environment?
or what necessary packages need to install?
thanks.
OpenCL-error -1001 "CL_PLATFORM_NOT_FOUND_KHR" doesn't necessarily mean you don't have any OpenCL-capable device. This means, that cl_khr_icd-extention have a trouble to load the proper vendor driver.
Try to run your OpenCL-program(s) as root. Or try to use clIcdGetPlatformIDsKHR.
If you not running X11, you need to create device files manually or by script

Julia error: no method haskey(Dict{String,Dict{String,String}},ASCIIString)

I'm trying to test out the Winston plotting engine in Julia. I installed the package but I'm getting some errors now when I try to compile one of the examples:
> julia example1.jl
Warning: could not import Base.haskey into Inifile
Warning: could not import Graphics.set_source into Color
ERROR: no method haskey(Dict{String,Dict{String,String}},ASCIIString)
in read at /Users/thinkpad20/.julia/IniFile/src/IniFile.jl:41
in read at /Users/thinkpad20/.julia/IniFile/src/IniFile.jl:67
in anonymous at /Users/thinkpad20/.julia/Winston/src/Winston.jl:39
in include_from_node1 at loading.jl:88
in reload_path at loading.jl:111
in require at loading.jl:46
in include_from_node1 at loading.jl:88
in process_options at client.jl:253
in _start at client.jl:334
at /Users/thinkpad20/.julia/Winston/src/Winston.jl:31
at /Users/thinkpad20/.julia/Winston/examples/example1.jl:3
can anyone tell me what's going on? It seems to be that it can't find Base.haskey, but I'm not sure how to address that.
Try inspecting Base.VERSION
haskey was introduced in Julia v0.2 (still pre-release as of this writing), I suspect that you are running a version 0.1.x
The real problem is inside of the Winston package. It sounds like they have their REQUIRES information set up wrong. You should file an issue here: https://github.com/nolta/Winston.jl
You can also download pre-release version of 0.2 for windows and mac here: https://code.google.com/p/julialang/downloads/list

Resources