Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Craig's GPU changes into abhijeet_per_camera_prior_gpu branch #259

Merged

Conversation

sbailey
Copy link
Collaborator

@sbailey sbailey commented Nov 28, 2023

This PR merges changes from @craigwarner-ufastro on the abhijeet_per_camera_gpu branch into the abhijeet_per_camera_prior_gpu branch, so that they can be included in PR #255 to merge these into main.

@craigwarner-ufastro please review these changes and resolve any conflicts with the goal of getting abhijeet_per_camera_prior_gpu into the "reference state" for updated archetypes + GPUs.

craigwarner-ufastro and others added 5 commits October 4, 2023 15:05
Modified solve_matrices algorithm to accept PCA or BVLS as a method.
Re-orgianized logic for GPU to take advantage of existing
calc_zchi2_batch algorithm.
For some strange reason refactoring tdata to add rows for color data in
batch in 3d array on CPU takes way longer than a python loop over 2d
arrays so I left two methods for per_camera - one for GPU and one for
CPU - for now while this gets resolved.

This is not the cleanest but it is the fastest and we can revisit if we
change our mind on that.
cleanly without a speed loss in runtime.

Removed old methods Tbs_for_archetypes,
per_camera_coeff_with_least_square, and
per_camera_coeff_with_least_square_cpu and renamed the remaining method
to per_camera_coeff_with_least_square_batch.

Updated 1->n_nbh where Abhijeet pointed out errors had been made.
Rolled back changes by Abhijeet done while attempting to merge to
restore per camera batch method.
…et_per_camera_prior_gpu. Added prior as optional arg to calc_zchi2_batch to do this.
@craigwarner-ufastro craigwarner-ufastro merged commit bd5983a into abhijeet_per_camera_prior_gpu Dec 4, 2023
17 checks passed
@sbailey sbailey deleted the abhijeet_per_camera_gpu branch January 4, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants