Code Monkey home page Code Monkey logo

camp's People

Contributors

cguzman95 avatar jcurtis2 avatar k20shores avatar mattldawson avatar mwest1066 avatar slayoo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

camp's Issues

CMAKE tries to copy nonexistent scenario directory

The following line appears to cause errors (inconsistently) with CMake.

add_custom_target(copy_scenario ALL ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/scenarios ${CMAKE_BINARY_DIR}/scenarios_run)

This directory doesn't exist in CAMP and therefore isn't copied and will cause an error. This is apparently fine in some cases (such as the current Dockerfile build) but not with newer versions.

Relevance of SHARED option in CMakeLists "add_library" function

Hello @mattldawson ,

I'm merging some changes on CMakeLists from the main branch to my branch, and in the process this warning triggers when compiling with GPU:

nvlink warning : SM Arch ('sm_30') not found in 'CMakeFiles/camplib.dir/src/cuda/camp_gpu_solver.cu.o'

Seems this warning is triggered by setting the SHARED option from "add_library" function, like this:

image

What is the relevante of SHARED option? It is needed for some test or the fix can be delayed to some point in the future?

Rand factor in guesser function

Hello @mattldawson,

Reviewing my old notes, I had seen that a difference worth to comment of my GPU branch with the main branch.

In the camp_solver.c file there's a rand() factor in the guesser function like this:

  // Scale incomplete jumps
    if (i_fast >= 0 && h_n > ZERO)
      h_j *= 0.95 + 0.1 * rand() / (double)RAND_MAX;
    h_j = t_n < t_0 + t_j + h_j ? t_n - (t_0 + t_j) : h_j;

In my notes, this random factor is difficulting the profiling, therefore it is disabled (replaced by just h_j *= 0.95 + 0.1) for the GPU branch. Should I keep both versions alive with a compiler option like #ifdef USE_GPU? Or do you have another suggestion?

possibly, although each rate constant type is going to have different sets of data - but maybe I'm not understanding what you're proposing correctly

          possibly, although each rate constant type is going to have different sets of data - but maybe I'm not understanding what you're proposing correctly

Originally posted by @mattldawson in #21 (comment)

Sorry, I cannot comment on your comment and also I don't know what are you refering to. This part of code is following the same structure than the CPU code, it shouldn't change so much

Fix update model state in main branch

Hello @mattldawson ,

I found that the main branch is missing a hotfix discussed a time ago. The change is the following:

image

The parameters should be -SMALL or TINY to avoid a division by zero which produces null values and sometimes problems on debugging.

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.