Git Product home page Git Product logo

Comments (3)

angeloskath avatar angeloskath commented on June 27, 2024

Hi,

Thanks for taking the time to compile and test the code. I have not come across this issue, however I do see a ton of warnings when I compile for CUDA which hints towards something not being done 100% correctly.

Since you can reproduce the error I have the following suggestions, if you want to help :). In any way thank you very much for the interest and the time.

  1. Nvidia suggests using target_compile_features(paches PUBLIC cxx_std_11) instead of set(CMAKE_CXX_STANDARD 11). Could you try keeping both?
  2. This is a bit more involved but since the library is a bit small you can try compiling directly with nvcc.

In any way if you just want to use the library you can disable cuda for compiling the extension and the wall clock time cost will not be that much. Maybe ~20%. Every convolution etc will still be happening on the GPU just the patch extraction will be happening on the CPU which is not that slow.

I will also try to reproduce the error and will post here if I manage.

Cheers,
Angelos

from attention-sampling.

nathanin avatar nathanin commented on June 27, 2024

Hi, sorry to have just gotten back to this.

I did as you suggested and included both set(...) and target_compile_features(..). With the target_compile_features I got errors about the first argument paches, I also changed it to patches, but the error was the same: the target is not built by the project? This is out of my depth, so I just ended up commenting the if(CUDA_FOUND) block and compiled with the patch extractor CPU only.

Thanks for your help!

from attention-sampling.

angeloskath avatar angeloskath commented on June 27, 2024

Hi,

I am closing the issue because I can't reproduce it. Feel free to reopen or open a new one if you have problems.

Cheers,
Angelos

from attention-sampling.

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.