Comments (6)
This looks like a bug. Thanks for the feedback.
from gpufit.
@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.
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.
@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.
Fixed in c65c867. Thanks @SebastianHambura @henrysillin @jimkring.
from gpufit.
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)
- Communication with Cupy HOT 14
- ReadtheDocs broken link HOT 1
- Custom function fails to to fit in Python, only performing a single iteration. HOT 1
- Installation Difficulties HOT 2
- cuBlas Entry Point Not Found HOT 5
- <limits> not included in info.h HOT 1
- CMake not finding Python HOT 1
- Best debug strategy HOT 1
- Cpufit API documentation and external bindings HOT 3
- Automated build test and release with github actions HOT 2
- Cuda interface mallocs and pybind11
- Mac installation HOT 1
- Issues after installing on Linux computer
- Linux compiling errors HOT 2
- CPUFIT python binding HOT 1
- cmake doesn't find python interpreter and python wheel file does not make. HOT 1
- could not build python package by setuptools HOT 1
- ModuleNotFoundError: No module named 'cpufit' - Running 'make' HOT 3
- Use GAUSS_2D_ROTATED to fit a 2D Gaussian, the returned state is 2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpufit.