Skip to content

Commit

Permalink
Fix preprocessor guard when AMGx is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Aug 28, 2018
1 parent 0702e21 commit bb1e2eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions include/mfmg/dealii_operator_device.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ private:
AMGX_solver_handle _amgx_solver_handle;
int _device_id[1];
std::unordered_map<int, int> _row_map;
#else
void *_amgx_config_handle;
void *_amgx_res_handle;
void *_amgx_matrix_handle;
void *_amgx_rhs_handle;
void *_amgx_solution_handle;
void *_amgx_solver_handle;
#endif
};
} // namespace mfmg
Expand Down
4 changes: 3 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ IF(${MFMG_ENABLE_CUDA})
MFMG_ADD_CUDA_TEST(test_sparse_matrix_device_operator 1)
MFMG_ADD_CUDA_TEST(test_smoother_device 1)
MFMG_ADD_CUDA_TEST(test_hierarchy_device 1)
MFMG_ADD_CUDA_TEST(test_amgx_direct_solver 1 2)
IF(${MFMG_ENABLE_AMGX})
MFMG_ADD_CUDA_TEST(test_amgx_direct_solver 1 2)
ENDIF()
ENDIF()

MFMG_COPY_INPUT_FILE(hierarchy_input.info tests/data)
Expand Down

0 comments on commit bb1e2eb

Please sign in to comment.