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

GPU fully compiling #389

Merged
merged 23 commits into from
Feb 15, 2024
Merged

Conversation

MMRROOO
Copy link

@MMRROOO MMRROOO commented Feb 14, 2024

No description provided.

Copy link
Contributor

@dannys4 dannys4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Largely great, keep up the good work. Should only be a few minor changes hopefully.

MParT/ParameterizedFunctionBase.h Outdated Show resolved Hide resolved
MParT/Utilities/ArrayConversions.h Outdated Show resolved Hide resolved
src/ParameterizedFunctionBase.cpp Outdated Show resolved Hide resolved
@dannys4
Copy link
Contributor

dannys4 commented Feb 15, 2024

Last comment: it looks like, in the github actions, the new SetCoeffs breaks Julia due to function call ambiguity; this should be fixed by just separating out the lines like

Kokkos::View<const double*, MemorySpace> const_coeffs = JlToKokkos(coeffs);
pfb.SetCoeffs(const_coeffs);

@dannys4 dannys4 merged commit 9042e5e into MeasureTransport:gpu_compile_24 Feb 15, 2024
5 checks passed
dannys4 added a commit that referenced this pull request Mar 25, 2024
* Fix SetCoeffs

* fixed ParameterizedFunctionBase bugs

* added missing templates

* fixed SetCoeff bugs

* fixed wrapCoeffs

* implemented wrapCoeffs with shallow copy

* used correct WrapCoeffs function for eigen vector coeffs

* fixed gpu bug in ConditionalMapBase

* conditional map base gpu bug fix

* removed unnecissary function

* ConditionalMapBase gpu bug fix (#373)

* fixed gpu bug in ConditionalMapBase

* conditional map base gpu bug fix

* removed unnecissary function

* fixed wrap coeffs gpu error in ComposedMap

* working on composedmap setCoeffs bug

* Merge changes from main (#379)

* fixed Summarized Map GPU bug

* fixed MapFactory GPU bugs

* Standardized notation

* ComposedMap, SummarizedMap, and MapFactory GPU bug fixes (#382)

* MapFactoryImpls compiling

* addec correct space when using gpu

* main library compiles with gpu

* Fixing some small gpu issues

* MapFactoryImpl Fixes (#387)

* GPU fully compiling (#389)

* Pass tests on gpu (#390)

* removed comments

* added functor

* fixed functor

* Fixing MapObjective

* added non const set coeffs function

* fixed non kokkos inline function error

* Fixing sigmoid.h and small LA

* working on tohost

* Fix viewtype tohost

* added documentation for array conversions

* removed documentation for array conversions

* fixed commenting bug

* moved comments

* updated setcoeffs and documentation

* fixed julia binidngs error

* removed virtual from non virtual setCoeffs

* fixed julia binding error

* fixed julia binding error part2

* fixed undefined device space

* renamed device space tests

* Adding new policy fixes

* started fixing kokkos parallel for issues

* continued updating parallel for

* updating parallel_for in tests

* updated parallel reduce

* Fix warnings, format

* Fix density errors

* Compiling RunTests

* Working tests

* Fix serial codebase

* Compiling Serialization and python

* Fixing mapfactoryimpl warnings

* Working python bindings

* fixing git issues

* fixed binding templating

* Finish gpu compile (#394)

* Fix loop in innermarginalaffine

* Remove unused variables

* Fix GPU and Test warnings/errors

* Test sigmoids on GPU

* Working python bindings for device sigmoid component

* Fix CPU compile error

* Fix test_MC

* fixed Multivariate Test

---------

Co-authored-by: Daniel Sharp <dannys4@mit.edu>
Co-authored-by: MMRROO <mrowkamaad@gmail.com>
Co-authored-by: Matt Parno <parnomd@gmail.com>
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.

2 participants