Giter VIP home page Giter VIP logo

Comments (11)

yongduek avatar yongduek commented on September 27, 2024 9

System: Mac OS Sierra 10.12.4, Mac mini (mid 2010)

I opened the file ~/torch/pkg/torch/lib/TH/CMakeLists.txt and added one line at the 198th as below.

195 # IF ANY SIMD FOUND
196 IF(C_AVX2_FOUND OR C_AVX_FOUND OR C_SSE4_2_FOUND OR C_SSE4_1_FOUND)
197   SET(simd generic/simd/convolve.c)
198   SET(simd ${simd} generic/simd/convolve5x5_sse.c)
199 ENDIF(C_AVX2_FOUND OR C_AVX_FOUND OR C_SSE4_2_FOUND OR C_SSE4_1_FOUND)

The command ./install.sh finished at last.
Definitely, the error is due to not including the c file during the library building. But there must be a better way to fix it.

from distro.

soumith avatar soumith commented on September 27, 2024

hey Alex, I am not able to reproduce this. Can you tell me a little more about your machine? Is it an Intel processor? Is it a VM?

from distro.

AlexMikhalev avatar AlexMikhalev commented on September 27, 2024

It's Mac Mini 2009

uname -a Mac-mini.local 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64

Processor 2.53 GHz Intel Core 2 Duo
Global install via

curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-luajit+torch | bash

worked
but I think curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
pulled one additional dependency.

I hope it helps.

from distro.

rifflesby avatar rifflesby commented on September 27, 2024

Has a solution been found for this? I'm having exactly the same problem, same messages entirely except mine says [lib/TH/libTH.0.dylib] instead of [lib/TH/libTH.dylib].

Early 2008 Mac Pro, 2 x 2.8 GHz Quad-Core Intel Xeon, MacOS 10.11.6

Darwin Scrimshank.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64

from distro.

soriyath avatar soriyath commented on September 27, 2024

+1

from distro.

sixmoraltales avatar sixmoraltales commented on September 27, 2024

Also having this problem. I'm using a 2009 macbook pro with OS 10.10.9, Intel Core 2 Duo. Here's where it dies:
....
[ 52%] Linking C shared library libTH.dylib
Undefined symbols for architecture x86_64:
"_convolve_5x5_sse", referenced from:
_convolve_5x5 in convolve.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/TH/libTH.0.dylib] Error 1
make[1]: *** [lib/TH/CMakeFiles/TH.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.
Error. Exiting.

from distro.

yongduek avatar yongduek commented on September 27, 2024

This seems to be what happening.

The directory ~/torch/pkg/torch/lib/TH/generic/simd contains files related to the error about convolve5x5. After some examination, I found that the function convolve_5x5_sse is defined in the file convolve5x5_sse.c therefore if SSE is going to be used then the it must be included in the library. However, the CMakeLists.txt does not include the C file when SSE4 is not detected.

from distro.

jtbonhomme avatar jtbonhomme commented on September 27, 2024

@yongduek it worked for me too, thank you !

from distro.

AlecZadikian9001 avatar AlecZadikian9001 commented on September 27, 2024

More confirmation that what @yongduek suggested works (on my El Capitan system). Thanks!

from distro.

aDotInTheVoid avatar aDotInTheVoid commented on September 27, 2024

works for me to

from distro.

ambigus9 avatar ambigus9 commented on September 27, 2024

Is this issue related to AVX or VT-X tecnology on Processors?

from distro.

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.