Skip to content

Commit

Permalink
EAMxx: fix CUDA issue in scm reader
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol committed Jul 1, 2024
1 parent 5ffbba0 commit f9a8937
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/eamxx/src/share/io/scorpio_scm_input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ class SCMInput
void set_logger(const std::shared_ptr<ekat::logger::LoggerBase>& atm_logger) {
m_atm_logger = atm_logger;
}

#ifndef KOKKOS_ENABLE_CUDA
// Cuda requires methods enclosing __device__ lambda's to be public
protected:
#endif
void create_closest_col_info (double target_lat, double target_lon);
protected:

struct ClosestColInfo {
Expand All @@ -44,7 +50,6 @@ class SCMInput
};

void create_io_grid ();
void create_closest_col_info (double target_lat, double target_lon);
void init_scorpio_structures ();
void set_decompositions();

Expand Down

0 comments on commit f9a8937

Please sign in to comment.