Giter Club home page Giter Club logo

Comments (6)

denizyuret avatar denizyuret commented on May 22, 2024

from knet.jl.

youssefzaky avatar youssefzaky commented on May 22, 2024

I updated Knet to 0.8.1 and that error is gone. However I'm getting another one from running:

julia linreg.jl

INFO: Knet using GPU 0
linreg.jl (c) Deniz Yuret, 2016. Linear regression example with artificial data.
opts=(:lr,0.02)(:atype,"KnetArray")(:epochsize,10000)(:inputdims,100)(:noise,0.01)(:epochs,10)(:gcheck,0)(:seed,-1)(:outputdims,10)(:batchsize,20)(:fast,false)
ERROR: LoadError: ccall: could not find function abs2_64 in library /home/youssef/.julia/v0.5/Knet/src/libknet8
in abs2(::Knet.KnetArray{Float64,2}) at /home/youssef/.julia/v0.5/Knet/src/cuda1.jl:74
in test(::Knet.KnetArray{Float64,2}, ::LinReg.Data) at /media/youssef/Partition1/Github/Knet.jl/examples/linreg.jl:76
in main(::Array{String,1}) at /media/youssef/Partition1/Github/Knet.jl/examples/linreg.jl:41
in include_from_node1(::String) at ./loading.jl:488
in process_options(::Base.JLOptions) at ./client.jl:262
in _start() at ./client.jl:318
while loading /media/youssef/Partition1/Github/Knet.jl/examples/linreg.jl, in expression starting on line 104

from knet.jl.

denizyuret avatar denizyuret commented on May 22, 2024

from knet.jl.

youssefzaky avatar youssefzaky commented on May 22, 2024

Yes its says libknet8.so is up to date. I also did Base.compilecache("Knet") but still the same problem.

from knet.jl.

ozanarkancan avatar ozanarkancan commented on May 22, 2024

I couldn't replicate the problem with the fresh install.

Please check whether Knet.libknet8 is set to the correct location:

using Knet
Knet.libknet8

If it prints empty string

Try to delete Knet.ji which is located under $JULIA_PKGDIR/lib/v0.5/ .

And build the lib again:

make clean
make

in $JULIA_PKGDIR/v0.5/Knet/src

from knet.jl.

youssefzaky avatar youssefzaky commented on May 22, 2024

I reinstalled julia and Knet and it works fine now. Not sure what went wrong before.

from knet.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.