Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A ASGarD
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FK6D
  • ASGarD
  • Issues
  • #32

Closed
Open
Created Oct 15, 2018 by Green, David@dg6Owner

Vlasov5 not matching matlab

Here is the output of running Vlasov5 (the case we want to use for the NVIDIA demo) from the matlab ...

On the reference branch run 11 time steps of the matlab (lev=5,deg=3,explicit) ...

fk6d(Vlasov5,5,3,.1)

Screen_Shot_2018-10-15_at_11.09.10_AM

And then let's run the C code (built with cmake -DWITH_CUDA=1 -DCMAKE_CXX_COMPILER=mpiCC -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_FLAGS=-O3 ../ on fusiont5) with the following include/control.hpp ...

#pragma once

//these have no meaning if you run with -r reference switch - that's always on CPU
#define USE_GPU
//below must be undefined if you don't use GPU
#define USE_MAGMA

First with the reference branch (shows an error that looks like a left-right offset) ...

./fk6d -p 3 -l 5 -d 3 -n 11 -w 1 -r

Screen_Shot_2018-10-15_at_11.13.03_AM

Second with the explicit optimized version (shows a rather difference df)

./fk6d -p 3 -l 5 -d 3 -n 11 -w 1

Screen_Shot_2018-10-15_at_11.14.35_AM

Third with the implicit optimized version ()

./fk6d -p 3 -l 5 -d 3 -n 11 -w 1 -i

Screen_Shot_2018-10-15_at_11.16.31_AM

So, in summary ... the implicit and explicit optimized versions agree. However, neither agree with the reference implementation, and that is close, but not quite in agreement with the matlab.

And let the bug chasing begin (again) ...

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking