GithubHelp home page GithubHelp logo

maxcuda / cans Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cans-world/cans

13.0 13.0 8.0 535 KB

A code for fast, massively-parallel direct numerical simulations (DNS) of canonical flows

License: MIT License

Fortran 93.08% Makefile 1.41% Python 4.75% Shell 0.15% MATLAB 0.61%

cans's People

Contributors

maxcuda avatar nscapin avatar p-costa avatar romerojosh avatar teslacoder avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cans's Issues

strange error when imposing the pressure BC

Hi,

I am trying to run the code with the default setup.h90 and bc.h90 files on a Tesla K80, with CUDA & MPI; one MPI task.

The case is compiled with the following flags (pgi 18.10):
OPT := -O0 -Mcuda
OTH := -DEPHC -DEPA2A -DTIMING -DUSE_CUDA -DUSE_NVTX -DGPU_MPI
(If I instead use -Mcuda=cc70, the bug reported here is triggered)

I find that if I don't add a synchronization step in between setting up the pressure BCs, i.e.:

call set_bc(cbc(0,3),0,n(3),3,.true.,bc(0,3),dzc(0)   ,p)
!@cuf ierr = cudaDeviceSynchronize()
call set_bc(cbc(1,3),1,n(3),3,.true.,bc(1,3),dzc(n(3)),p)

the code will crash at the first call of subroutine boundp:

[t03n02:30004] *** Process received signal ***
[t03n02:30004] Signal: Bus error (7)
[t03n02:30004] Signal code: Non-existant physical address (2)
[t03n02:30004] Failing at address: 0x8105d9c200

When I add this synchronization step the code seems to run fine.

I don't understand why this synchronization is required, since something very similar is done in the subroutine bounduvw and there seems to be no problem there.

Thanks in advance!

Best,
Pedro

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.