Giter Site home page Giter Site logo

Comments (10)

HalseyWang avatar HalseyWang commented on August 13, 2024

How to remove cudaThreadSynchronize and intall cudaDeviceSynchronize

from oxdna.

lorenzo-rovigatti avatar lorenzo-rovigatti commented on August 13, 2024

Hi there! What do you mean?

from oxdna.

HalseyWang avatar HalseyWang commented on August 13, 2024

Hi there, I ran into some problems when compiling with CUDA support. The compilation of romano failed and there were some questions about cudaThreadsynchronize and cudaThreaderror. I am a non-computer professional, so I want to ask for your help to compile oxDNA correctly.

from oxdna.

lorenzo-rovigatti avatar lorenzo-rovigatti commented on August 13, 2024

Well, the compilation of romano has not been tested with the current version of the code, and it may fail given the number of changes that I carried out with respect to the sourceforge repo.

from oxdna.

HalseyWang avatar HalseyWang commented on August 13, 2024

Thanks!

from oxdna.

lorenzo-rovigatti avatar lorenzo-rovigatti commented on August 13, 2024

Feel free to open a new issue if you have problems compiling oxDNA though. Don't forget to specify the versions of the tools you are using (cmake, gcc) and to copy&paste the errors you get.

from oxdna.

HalseyWang avatar HalseyWang commented on August 13, 2024

cmake version 3.10.2
gcc Ubuntu 7.5.0
nvcc: Cuda compilation tools, release 10.1, V10.1.168.

Many thanks for creating this model, I am keen to use. I am working on a GPU workstation with Nvidia p5000 cards, and would like to leverage these for running oxDNA simulations. Currently I have successfully compiled and run the oxDNA program (only with cpu). However, I keep running into trouble when trying to compile with the -DCUDA=ON option. It is finding my CUDA installed alright (v 10.1), and during building everything seems to work. Here is the log file.

oxDNA_error.docx

from oxdna.

lorenzo-rovigatti avatar lorenzo-rovigatti commented on August 13, 2024

In order to compile with CUDA support you need these commands:

mkdir build
cd build
cmake .. -DCUDA=1
make -j4

and that's it. You are running way more commands than you need to (no need for make test_quick, make romano and make rovigatti, for instance).
The other "errors" you see are just warnings, which will be removed in future versions but are not a problem right now. This means that your code compiles correctly and you can start using it.

from oxdna.

HalseyWang avatar HalseyWang commented on August 13, 2024

Thank you very much for your help!

from oxdna.

lorenzo-rovigatti avatar lorenzo-rovigatti commented on August 13, 2024

This issue has been fixed in aebbdba and sooner or later will be merged in the master branch.

from oxdna.

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.