Giter Club home page Giter Club logo

Comments (9)

prashantpandey avatar prashantpandey commented on August 20, 2024

Hey John,

Squeakr uses a CQF as the underlying data structure to count kmers. The CQF code uses two new instructions that were introduced in Intel Haswell (4th generation) line of CPUs.
I guess the machine you are using doesn't have a Haswell or newer CPU. That's why you are getting an "illegal hardware instruction" issue.

from squeakr.

prashantpandey avatar prashantpandey commented on August 20, 2024

I will try to release a patch so that the code can use the C implementation of the new instructions if the underlying hardware doesn't support them.

from squeakr.

johnlees avatar johnlees commented on August 20, 2024

Ah, thanks for the explanation. I'd appreciate the patch, if you're able to make it!

from squeakr.

prashantpandey avatar prashantpandey commented on August 20, 2024

Hey John,

I have pushed a new commit for the code to work on older-than-Haswell CPUs. The REAMDE is also updated with instructions on how to build.

Thanks
Prashant

from squeakr.

johnlees avatar johnlees commented on August 20, 2024

Thanks for that!
I'm now getting a compile error, which I guess is due to missing zlib includes?

In file included from main.cc:49:0:
reader.h:35:21: error: ‘gzFile_s’ has not been declared
    reader(FILE *in, gzFile_s *in_gzip, BZFILE *in_bzip2, int bzerror);
                     ^
reader.h:38:4: error: ‘gzFile_s’ does not name a type
    gzFile_s *in_gzip = nullptr;
    ^

I've got zlib.h in /usr/include which should be ok? I noticed some of the zlib stuff changed with the recent commit

from squeakr.

prashantpandey avatar prashantpandey commented on August 20, 2024

Can you check the version of zlib and bzip2 on your machine?
Here is what I have:
$ apt-cache policy zlib1g-dev
zlib1g-dev:
Installed: 1:1.2.8.dfsg-2ubuntu4
Candidate: 1:1.2.8.dfsg-2ubuntu4
Version table:
*** 1:1.2.8.dfsg-2ubuntu4 500
500 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
$ apt-cache policy bzip2
bzip2:
Installed: 1.0.6-8
Candidate: 1.0.6-8
Version table:
*** 1.0.6-8 500
500 http://ca.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status

from squeakr.

johnlees avatar johnlees commented on August 20, 2024
$ apt-cache policy zlib1g-dev
zlib1g-dev:
  Installed: 1:1.2.3.4.dfsg-3ubuntu4
  Candidate: 1:1.2.3.4.dfsg-3ubuntu4
  Version table:
 *** 1:1.2.3.4.dfsg-3ubuntu4 0
        500 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
$ apt-cache policy bzip2
bzip2:
  Installed: 1.0.6-1
  Candidate: 1.0.6-1
  Version table:
 *** 1.0.6-1 0
        500 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

Do you think the zlib version is too low?

from squeakr.

prashantpandey avatar prashantpandey commented on August 20, 2024

Can you check if "gzFile_s" is declared in your "/usr/include/zlib.h"?
If not you should upgrade your zlib package.

Thanks
Prashant

from squeakr.

johnlees avatar johnlees commented on August 20, 2024

Hi Prashant,
I have installed zlib 1.2.11, and now squeakr has compiled and runs correctly. Thanks so much for your help! I look forward to using the tool.
John

from squeakr.

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.