-
Notifications
You must be signed in to change notification settings - Fork 92
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
Jinmerge #58
Open
chrispbradley
wants to merge
35
commits into
OpenCMISS:master
Choose a base branch
from
chrispbradley:jinmerge
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Jinmerge #58
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
0cc8bd8
New branch for CUDA integration. Tracker item 2180
jinthagerman d17fe30
Initial commit of cuda integration. Makefiles are hacked to together …
jinthagerman 5d014f3
Updated cellml to opencmiss field mapping calls. Tracker item 2180
jinthagerman c885973
Backup commit. Getting random segment violations
jinthagerman 10aeb73
Fixed a few bugs in FieldIOImportFields. No Tracker Item
jinthagerman 7557b3f
CMGUI heart mesh files added. Tracker item 2180
jinthagerman 1664975
Added code to read vtk files for an unstructered tet mesh plus merge …
jinthagerman 5707beb
Implemented VTK reading in MonodomainCUDA example. Getting Segment vi…
jinthagerman 75ea90c
Bug fixes.
chrispbradley 831e52b
VTK importing properly into example. No Tracker Item
jinthagerman 61394cc
Changes made to Monodomain files. Tracker item 2180
jinthagerman e1d5515
Updated CUDA example, changed to fitzhugh nagumo for simplicity. See …
jinthagerman 7fa1775
Fixed broken working copy of branch. Commit with merges no significan…
jinthagerman fff10dd
Merge repo changes with branch and made a few minor changes. No relat…
jinthagerman 35468ae
Added cuda parameter setting methods to opencmiss. Merged changes als…
jinthagerman 4678f1e
Rewrote partitioning algorithm as it was far too fragile. Added CLI t…
jinthagerman 80d8467
Fixed issues with recent changes to field variables. No relevant Trac…
jinthagerman b6c3629
Further optimisations and fixes to partitioning algorithm. Added FHN …
jinthagerman fb3328a
Added per-time step solver timing data dump and total solve timing re…
jinthagerman 7c52a10
Changed some WRITEs to write_string_value to clean up output. Added h…
jinthagerman 102334e
CUDA changes.
chrispbradley 9584a63
Initialise pointers bug fix.
chrispbradley 5175b07
More uninitialised pointers.
chrispbradley 3fcb2e1
OpenMPI include path corrections.
chrispbradley 24e3f1f
Uninitialised pointer.
chrispbradley 3c478c8
Merge branch 'master' of https://github.com/OpenCMISS/cm
chrispbradley e72f935
Moving MPI to its own repository.
chrispbradley d7014fe
Makefile merge.
chrispbradley ef3d356
Merge branch 'master' of https://github.com/OpenCMISS/cm
chrispbradley a0ceb30
Remove nodal from FieldML input parameters.
chrispbradley e6cfb55
Fix typo.
chrispbradley bc06e26
Fix more typos.
chrispbradley d0bd65c
Merge branch 'jin' of https://github.com/chrispbradley/cm
chrispbradley 2e9dd33
Error message for fopen problems.
chrispbradley 4a03384
Tidy ups
chrispbradley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,12 +102,17 @@ main: preliminaries \ | |
|
||
PREPROCESSED_OBJECTS = | ||
|
||
.SUFFIXES: .f90 .c .cu | ||
|
||
$(OBJECT_DIR)/%.o : $(SOURCE_DIR)/%.f90 $(OBJECT_DIR)/.directory | ||
( cd $(OBJECT_DIR) && $(FC) -o $@ $(FFLAGS) $(FPPFLAGS) -c $< ) | ||
|
||
$(OBJECT_DIR)/%.o : $(SOURCE_DIR)/%.c $(OBJECT_DIR)/.directory | ||
( cd $(OBJECT_DIR) && $(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $< ) | ||
|
||
$(OBJECT_DIR)/%.o : $(SOURCE_DIR)/%.cu | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should also depend on $(OBJECT_DIR)/.directory |
||
( cd $(OBJECT_DIR) ; $(NVCC) -o $@ $(NVCCFLAGS) $(NVCCPPFLAGS) -c $< ) | ||
|
||
$(PREPROCESSED_OBJECTS) : $(OBJECT_DIR)/%.o : $(SOURCE_DIR)/%.f90 $(OBJECT_DIR)/.directory | ||
( m4 --prefix-builtins $< > $(subst .o,-expanded.f90,$@) && cd $(OBJECT_DIR) && $(FC) -o $@ $(FFLAGS) $(FPPFLAGS) -c $(subst .o,-expanded.f90,$@) ) | ||
|
||
|
@@ -125,6 +130,12 @@ else | |
FIELDML_OBJECT = # | ||
endif | ||
|
||
ifeq ($(USECUDA),true) | ||
CUDA_OBJECT = $(OBJECT_DIR)/external_dae_solver_routines.o | ||
else | ||
CUDA_OBJECT = $(OBJECT_DIR)/external_dae_solver_routines_dummy.o | ||
endif | ||
|
||
#ifeq ($(COMPILER),intel) # TODO: temporarily disable intel build for opencmiss.f90 and etc. | ||
# FIELDML_OBJECT = # | ||
# MOD_INCLUDE := # | ||
|
@@ -180,7 +191,6 @@ OBJECTS = $(OBJECT_DIR)/advection_diffusion_equation_routines.o \ | |
$(OBJECT_DIR)/equations_matrices_routines.o \ | ||
$(OBJECT_DIR)/equations_set_constants.o \ | ||
$(OBJECT_DIR)/equations_set_routines.o \ | ||
$(OBJECT_DIR)/external_dae_solver_routines.o \ | ||
$(OBJECT_DIR)/field_routines.o \ | ||
$(OBJECT_DIR)/field_IO_routines.o \ | ||
$(OBJECT_DIR)/finite_elasticity_routines.o \ | ||
|
@@ -233,6 +243,8 @@ OBJECTS = $(OBJECT_DIR)/advection_diffusion_equation_routines.o \ | |
$(OBJECT_DIR)/trees.o \ | ||
$(OBJECT_DIR)/types.o \ | ||
$(OBJECT_DIR)/util_array.o \ | ||
$(OBJECT_DIR)/vtk_import_routines.o \ | ||
$(CUDA_OBJECT) \ | ||
$(FIELDML_OBJECT) \ | ||
$(PREPROCESSED_OBJECTS) | ||
|
||
|
@@ -444,6 +456,8 @@ $(OBJECT_DIR)/cmiss_cellml_dummy.o : $(SOURCE_DIR)/cmiss_cellml_dummy.f90 | |
|
||
$(OBJECT_DIR)/cmiss_fortran_c.o : $(SOURCE_DIR)/cmiss_fortran_c.f90 | ||
|
||
$(OBJECT_DIR)/cmiss_fortran_c.o : $(SOURCE_DIR)/cmiss_fortran_c.f90 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like it's been copied accidentally from above? |
||
|
||
$(OBJECT_DIR)/cmiss_mpi.o : $(SOURCE_DIR)/cmiss_mpi.f90 \ | ||
$(OBJECT_DIR)/base_routines.o \ | ||
$(OBJECT_DIR)/constants.o \ | ||
|
@@ -874,8 +888,10 @@ $(OBJECT_DIR)/equations_set_routines.o : $(SOURCE_DIR)/equations_set_routines.f9 | |
$(OBJECT_DIR)/timer_f.o \ | ||
$(OBJECT_DIR)/types.o | ||
|
||
$(OBJECT_DIR)/external_dae_solver_routines.o : $(SOURCE_DIR)/external_dae_solver_routines.c \ | ||
$(SOURCE_DIR)/external_dae_solver_routines.h | ||
$(OBJECT_DIR)/external_dae_solver_routines.o : $(SOURCE_DIR)/external_dae_solver_routines.cu \ | ||
$(SOURCE_DIR)/external_dae_solver_routines.h | ||
|
||
$(OBJECT_DIR)/external_dae_solver_routines_dummy.o : $(SOURCE_DIR)/external_dae_solver_routines_dummy.c | ||
|
||
$(OBJECT_DIR)/field_routines.o : $(SOURCE_DIR)/field_routines.f90 \ | ||
$(OBJECT_DIR)/base_routines.o \ | ||
|
@@ -912,7 +928,8 @@ $(OBJECT_DIR)/field_IO_routines.o : $(SOURCE_DIR)/field_IO_routines.f90 \ | |
$(OBJECT_DIR)/mesh_routines.o \ | ||
$(OBJECT_DIR)/node_routines.o \ | ||
$(OBJECT_DIR)/strings.o \ | ||
$(OBJECT_DIR)/types.o | ||
$(OBJECT_DIR)/types.o \ | ||
$(OBJECT_DIR)/vtk_import_routines.o | ||
|
||
$(OBJECT_DIR)/finite_elasticity_routines.o : $(SOURCE_DIR)/finite_elasticity_routines.f90 \ | ||
$(OBJECT_DIR)/base_routines.o \ | ||
|
@@ -1404,7 +1421,6 @@ $(OBJECT_DIR)/Poiseuille_equations_routines.o : $(SOURCE_DIR)/Poiseuille_equatio | |
$(OBJECT_DIR)/timer_f.o \ | ||
$(OBJECT_DIR)/types.o | ||
|
||
|
||
$(OBJECT_DIR)/Poisson_equations_routines.o : $(SOURCE_DIR)/Poisson_equations_routines.f90 \ | ||
$(OBJECT_DIR)/base_routines.o \ | ||
$(OBJECT_DIR)/basis_routines.o \ | ||
|
@@ -1511,7 +1527,7 @@ $(OBJECT_DIR)/solver_routines.o : $(SOURCE_DIR)/solver_routines.f90 \ | |
$(OBJECT_DIR)/constants.o \ | ||
$(OBJECT_DIR)/distributed_matrix_vector.o \ | ||
$(OBJECT_DIR)/equations_set_constants.o \ | ||
$(OBJECT_DIR)/external_dae_solver_routines.o \ | ||
$(CUDA_OBJECT) \ | ||
$(OBJECT_DIR)/field_routines.o \ | ||
$(OBJECT_DIR)/kinds.o \ | ||
$(OBJECT_DIR)/input_output.o \ | ||
|
@@ -1622,6 +1638,9 @@ $(OBJECT_DIR)/util_array.o : $(SOURCE_DIR)/util_array.f90 \ | |
$(OBJECT_DIR)/base_routines.o \ | ||
$(OBJECT_DIR)/types.o | ||
|
||
$(OBJECT_DIR)/vtk_import_routines.o : $(SOURCE_DIR)/vtk_import_routines.c \ | ||
$(SOURCE_DIR)/vtk_import_routines.h | ||
|
||
# ---------------------------------------------------------------------------- | ||
# | ||
# SWIG bindings to other languages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this line should be deleted now that the libraries are included in $(EXTERNAL_LIBRARIES) from MakefileCommon.inc