Git Product home page Git Product logo

Comments (3)

andersp avatar andersp commented on June 2, 2024

from sw4lite.

rwvo avatar rwvo commented on June 2, 2024

I manage to correctly build the CPU version from the latest commit from 2017-12-17 (commit 5ab806), and with a minor fix, the GPU version too. Both give correct output for pointsource.in.

Yesterday's commit (merging the pull request) broke both the GPU version (incorrect output for pointsource.in), and the CPU version, which no longer builds; CPU code is calling GPU functions that are undefined in the CPU version:

../src/EW.C: In member function ‘void EW::timesteploop(std::vector<Sarray>&, std::vector<Sarray>&)’:                   
../src/EW.C:2602:43: error: ‘pack_HaloArrayCU_X’ was not declared in this scope                                        
            pack_HaloArrayCU_X (Up[g], g, 0);
                                           ^
../src/EW.C:2604:45: error: ‘unpack_HaloArrayCU_X’ was not declared in this scope                                      
            unpack_HaloArrayCU_X (Up[g], g, 0);
                                             ^
../src/EW.C:2605:43: error: ‘pack_HaloArrayCU_Y’ was not declared in this scope                                        
            pack_HaloArrayCU_Y (Up[g], g, 0);
                                           ^
../src/EW.C:2607:45: error: ‘unpack_HaloArrayCU_Y’ was not declared in this scope                                      
            unpack_HaloArrayCU_Y (Up[g], g, 0);
                                             ^
../src/EW.C:2609:32: error: ‘cudaDeviceSynchronize’ was not declared in this scope                                     
          cudaDeviceSynchronize();
                                ^
../src/EW.C:2645:32: error: ‘cudaDeviceSynchronize’ was not declared in this scope                                     
          cudaDeviceSynchronize();
                                ^
../src/EW.C:2730:43: error: ‘pack_HaloArrayCU_X’ was not declared in this scope                                        
            pack_HaloArrayCU_X (Up[g], g, 0);
                                           ^
../src/EW.C:2732:45: error: ‘unpack_HaloArrayCU_X’ was not declared in this scope                                      
            unpack_HaloArrayCU_X (Up[g], g, 0);
                                             ^
../src/EW.C:2733:43: error: ‘pack_HaloArrayCU_Y’ was not declared in this scope                                        
            pack_HaloArrayCU_Y (Up[g], g, 0);
                                           ^
../src/EW.C:2735:45: error: ‘unpack_HaloArrayCU_Y’ was not declared in this scope                                      
            unpack_HaloArrayCU_Y (Up[g], g, 0);
                                             ^

from sw4lite.

rwvo avatar rwvo commented on June 2, 2024

Fixed in commit c52471, Thu Jun 7 20:38:56 2018 -0700:
Both CPU and GPU versions compile, and run with correct output for test input pointsource.in.

from sw4lite.

Related Issues (5)

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.