Code Monkey home page Code Monkey logo

kfast's People

Contributors

komrad36 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kfast's Issues

AVX instructions loading beyond end of image buffer

Hi, firstly thank you very much for your excellent work on KFAST!

I have a question about the 32 byte loads performed in processCols. I noticed that when I run valgrind on KFAST I get some complaints like this:

==21867== Invalid read of size 32
==21867== at 0x5A2D57: _mm256_cmpgt_epi8 (avx2intrin.h:261)
==21867== by 0x5A2D57: processCols<false, false> (KFastAVX2.h:207)
==21867== by 0x5A2D57: void _KFAST<false, true, true>(unsigned char const*, int, int, int, int, std::vector<Keypoint, std::allocator >&, unsigned char) (KFastAVX2.h:401)
==21867== by 0x5A1D5A: KFAST<false, false> (KFastAVX2.h:493)
==21867== Address 0x630ef43 is 307,187 bytes inside a block of size 307,200 alloc'd

From reading the code what I can understand is that, on each row when processing the final set of columns (i.e. < 32 columns left), you load in chunks of 32 bytes and mask out the data beyond the end of the row. This means that for the final row you will load data beyond the end of the buffer, and valgrind thinks this is bad.

I couldn't really find any info on the safety of doing this with AVX, so I wondering if you could comment on it, or maybe point me to some documentation?

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.