Coder Social home page Coder Social logo

Comments (6)

superchromix avatar superchromix commented on May 29, 2024

This looks like a bug. Thanks for the feedback.

from gpufit.

jimkring avatar jimkring commented on May 29, 2024

@superchromix @SebastianHambura I've create a Pull Request for this issue, here: PR #117. I haven't done much testing, but it builds.

from gpufit.

henrysillin avatar henrysillin commented on May 29, 2024

I tested @SebastianHambura 's proposed fix (cuda_kernels.cu line 939), and I think there is some additional code that needs to be modified, but I haven't gotten it right yet. In gpu_data.cu line 144
Currently IS:
if (info_.use_constraints_) { write(constraints_, constraints, 2 * info_.n_parameters_); write(constraint_types_, constraint_types, info_.n_parameters_); }

Possible fix (this and minor variations didn't work, but I think it's in the ballpark):
if (info_.use_constraints_) { write( constraints_, constraints + chunk_index_*info_.max_chunk_size_*info_.n_parameters_, chunk_size * info_.n_parameters_ * 2); write(constraint_types_, constraint_types, info_.n_parameters_); }

from gpufit.

jimkring avatar jimkring commented on May 29, 2024

@henrysillin I made your proposed change in PR #117 (Note: I changed chunk_size to chunk_size_ in your possible fix). Still need to do some testing to see if it works on GPU.

from gpufit.

gpufit avatar gpufit commented on May 29, 2024

Fixed in c65c867. Thanks @SebastianHambura @henrysillin @jimkring.

from gpufit.

jimkring avatar jimkring commented on May 29, 2024

Looks good to me!

Here are two different fits that show it's now working.

We can see that the resulting fit parameters (outputs) for each curve fall within their own fit constraints and also (this is the good part) the 2nd curve's last fit parameter (8.1) falls below the constraints of the first fit (9.0 to 10.0).  Previously, it would get stuck at 9.0 (the lower end of the constraint for the first fit.

Kudos and thanks!

from gpufit.

Related Issues (20)

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.