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

#2 - fregrid_acc: create functions read_remap_file and copy_interp_to_device #284

Closed
wants to merge 14 commits into from

Conversation

mlee03
Copy link

@mlee03 mlee03 commented Apr 12, 2024

In this PR,

  1. The top portion of setup_conserve_interp involves reading in an existing remap file and storing the read-in data to an interp struct. This portion has been relocated to a newly created function read_remap_file.
  2. A new function called copy_interp_to_device has been defined in a newly created fregrid_utils_acc.c/h file. This function transfers the interp struct to the device.

Call to read_remap_file followed by a call to copy_interp_to_device copies the data from the remap file to the device.

The accompanying unit test checks to ensure data has been copied in correctly by checking the answers on the device and on the host for both conserve_order1 and conserve_order2 interpolation methods.

@mlee03 mlee03 marked this pull request as ready for review April 18, 2024 13:56
@mlee03 mlee03 changed the title create functions read_remap_file and copy_interp_to_device #2 - create functions read_remap_file and copy_interp_to_device May 9, 2024
@mlee03 mlee03 changed the title #2 - create functions read_remap_file and copy_interp_to_device #2 - fregrid_acc: create functions read_remap_file and copy_interp_to_device May 24, 2024
@mlee03
Copy link
Author

mlee03 commented Jun 13, 2024

closing, a larger PR will contain this PR.

@mlee03 mlee03 closed this Jun 13, 2024
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