You can probably just add that to the paths that find_library checks (see
CUDArt.jl).
Since it's system-dependent, this is the kind of thing that's not really
possible for me to fix myself. So if you can figure out what's needed on your
system, a pull request would be most appreciated. If possible, try to keep it
as general as possible with respect to CUDA version.
Best,
--Tim
On Thursday, October 15, 2015 02:32:03 PM Joaquim Masset Lacombe Dias Garcia
wrote:
> Thats Great that you could update the README!
>
> I am now testing the pkg on mac (later I was on windows).
> The problem now is that its failing to add the lib (using CUDArt), I get
> the error:
>
> INFO: Precompiling module CUDArt...
> ERROR: LoadError: LoadError: CUDA runtime API library cannot be found
> in error at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
> in include at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
> in include_from_node1 at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
> in include at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
> in include_from_node1 at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
> [inlined code] from none:2
> in anonymous at no file:0
> in process_options at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
> in _start at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
> while loading
> /Users/joaquimdiasgarcia/.julia/v0.4/CUDArt/src/libcudart-6.5.jl, in
> expression starting on line 41 while loading
> /Users/joaquimdiasgarcia/.julia/v0.4/CUDArt/src/CUDArt.jl, in expression
> starting on line 27
>
> LoadError: Failed to precompile CUDArt to
> /Users/joaquimdiasgarcia/.julia/lib/v0.4/CUDArt.ji while loading In[1], in
> expression starting on line 1
>
> in error at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
> in compilecache at loading.jl:383
> in require at
> /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
>
> I have a similar error for Pkg.test(...)
>
> Pkg.add() seemed to be OK:
>
> Pkg.add("CUDArt")
> INFO: Installing CUDArt v0.2.2
> INFO: Building CUDArt
> nvcc --shared --compiler-options=-fPIC --linker-options=-dylib wrapcuda.c -o
> libwrapcuda.dylib nvcc -ptx -gencode=arch=compute_20,code=sm_20 utils.cu
> nvcc -ptx vadd.cu
> INFO: Package database updated
> INFO: METADATA might be out-of-date — you may not have the latest version of
> CUDArt INFO: Use `Pkg.update()` to get the latest versions of your packages
>
>
>
> I looked at where CUDArt looks for libcuda, it seems to be a different
> place:
> it looks in : "/usr/local/cuda-7.0/lib"
> istead of: /Developer/NVIDIA/CUDA-7.0/lib
>
> Em quarta-feira, 14 de outubro de 2015 18:14:57 UTC-3, Tim Holy escreveu:
> > Sorry you had trouble. I've updated the README, so you might want to try
> > again. I also tagged a new version of the package, so you'll have access
> > to
> > the newer features described in the README; you'll probably want to do
> > Pkg.update().
> >
> > Best,
> > --Tim
> >
> > On Wednesday, October 14, 2015 08:27:06 AM Joaquim Masset Lacombe Dias
> > Garcia
> >
> > wrote:
> > > I could not run the main example of CUDArt from
> > >
> > > : https://github.com/JuliaGPU/CUDArt.jl
> > >
> > > The code and error follow bellow.
> > >
> > > running:
> > > #MyCudaModule previously defined as
> > > in: https://github.com/JuliaGPU/CUDArt.jl
> > > using CUDArt, MyCudaModule
> > >
> > > A = rand(10,5)
> > >
> > > result = devices(dev->capability(dev)[1]>=2) do devlist
> > >
> > > MyCudaModule.init(devlist) do
> > >
> > > function1(CudaArray(A))
> > >
> > > end
> > >
> > > end
> > >
> > > error output:
> > >
> > > wrong number of arguments
> > > while loading In[9], in expression starting on line 5
> > >
> > > in anonymous at In[9]:7
> > > in init at In[8]:27
> > > in anonymous at In[9]:6
> > > in devices at
> >
> > C:\Users\joaquimgarcia\.julia\v0.3\CUDArt\src\device.jl:57
> >
> > > I tried in both julia 0.3 and 0.4
> > >
> > >
> > > also i tried Pkg.test("CUDArt")
> > >
> > > and al tests passed