Giter VIP home page Giter VIP logo

gemsfmm's People

Contributors

labarba avatar rioyokota avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gemsfmm's Issues

Code doesn't work with modern cuda sdk

Dear Rio,
Can you let me know, if you tried to run gemsfmm code with more or less modern version of cuda sdk, because when I tried to compile the existing code after it "trivial" modifications, I have
Kernel execution failed in file 'gpukernel_p3.cu' in line xxx : invalid device function.

This line corresponds to lines 605 and 606 of your original code:
p2p_kernel<<< grid, block >>>(deviceOffset,devicePosTarget,devicePosSource,deviceAccel);
CUT_CHECK_ERROR("Kernel execution failed");

Thank you in advance!

Index exceeds size of array in gpukernelcore_p4.cu?

I am trying to build a pytorch interface based on this implementation and might have found a possible bug?

Note that in order to get the code to work 10 years after it has been written, I have changed some things but mostly only removed the SDK dependent checks but most of the remaining code remains the same.

I have encountered the following problem:

In the function m2l_kernel (line 322) a variable "jnk" is declared on line 429.
jnk=(j+n)*(j+n)+j+n;

jnk is used to access an array of size numExpansion2 (10**2) but jnk oftentimes exceeds 100 which results in an illegal memory access.

Is this a bug or am I doing something wrong?

Giving it a go on Windows

The timing parts (tic, toc) use things only found *nix systems.  
http://stackoverflow.com/questions/2494356/how-to-use-gettimeofday-or-something-
equivalent-with-visual-studio-c-2008

"int neo[numBoxIndexFull];" in cpukernel.cpp wouldn't work, as my compiler at 
least didn't think numBoxIndexFull was a constant expression.

required for constants.h (to get at M_PI)
#define _USE_MATH_DEFINES
#include <math.h>

"complex" type didn't work until I explicitly specified std::complex.  
Conversely, min and max didn't work until I removed the std:: part.

plenty of compiler specific stuff in sse.h

by the time I gave up (at least for a first attack), I was experiencing issues 
in FmmSystem::sort.  Specifically,  
"sortValueBuffer[sortIndexBuffer[sortValue[i]]] = sortValue[i];".  the index 
into sortValueBuffer I think was out of bounds.  No clue if it is a bug or just 
something I broke while trying to get other things working...

If/When I return to this and get it working, I'll submit my modified code for 
others to benefit.  Though it'll probably be greatly reduced in functionality, 
focused on how I plan to use it...  eg I'll remove get_time rather than fixing 
it.

Original issue reported on code.google.com by [email protected] on 28 Aug 2012 at 11:08

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.