-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
171 changed files
with
51,458 additions
and
2,033 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
set(sources | ||
src/BlockOutput.cpp | ||
src/BoxDimensions.cpp | ||
src/CBMC.cpp | ||
src/CellList.cpp | ||
src/ConfigSetup.cpp | ||
src/ConsoleOutput.cpp | ||
src/Coordinates.cpp | ||
src/CPUSide.cpp | ||
src/CalculateEnergy.cpp | ||
src/EnPartCntSampleOutput.cpp | ||
src/Ewald.cpp | ||
src/EwaldCached.cpp | ||
src/FFConst.cpp | ||
src/FFDihedrals.cpp | ||
src/FFParticle.cpp | ||
src/FFSetup.cpp | ||
src/Forcefield.cpp | ||
src/Geometry.cpp | ||
src/HistOutput.cpp | ||
src/InputFileReader.cpp | ||
src/Main.cpp | ||
src/MoleculeKind.cpp | ||
src/MoleculeLookup.cpp | ||
src/Molecules.cpp | ||
src/MolSetup.cpp | ||
src/MoveConst.cpp | ||
src/MoveSettings.cpp | ||
src/NoEwald.cpp | ||
src/OutConst.cpp | ||
src/OutputVars.cpp | ||
src/PDBSetup.cpp | ||
src/PDBOutput.cpp | ||
src/PRNGSetup.cpp | ||
src/PSFOutput.cpp | ||
src/Reader.cpp | ||
src/Simulation.cpp | ||
src/StaticVals.cpp | ||
src/System.cpp | ||
src/cbmc/DCGraph.cpp | ||
src/cbmc/DCFreeHedron.cpp | ||
src/cbmc/DCLinkedHedron.cpp | ||
src/cbmc/DCHedron.cpp | ||
src/cbmc/DCLinear.cpp | ||
src/cbmc/DCLink.cpp | ||
src/cbmc/DCLinkNoDih.cpp | ||
src/cbmc/DCOnSphere.cpp | ||
src/cbmc/DCSingle.cpp | ||
src/cbmc/TrialMol.cpp) | ||
|
||
set(headers | ||
src/BlockOutput.h | ||
src/BoxDimensions.h | ||
src/CalculateEnergy.h | ||
src/CBMC.h | ||
src/CellList.h | ||
src/Clock.h | ||
src/COM.h | ||
src/ConfigSetup.h | ||
src/ConsoleOutput.h | ||
src/ConstField.h | ||
src/Coordinates.h | ||
src/CoordinateSetup.h | ||
src/CPUSide.h | ||
src/EnergyTypes.h | ||
src/EnPartCntSampleOutput.h | ||
src/EnsemblePreprocessor.h | ||
src/Ewald.h | ||
src/EwaldCached.h | ||
src/FFAngles.h | ||
src/FFBonds.h | ||
src/FFConst.h | ||
src/FFDihedrals.h | ||
src/FFParticle.h | ||
src/FFSetup.h | ||
src/FFShift.h | ||
src/FFSwitch.h | ||
src/FFSwitchMartini.h | ||
src/FixedWidthReader.h | ||
src/Forcefield.h | ||
src/FxdWidthWrtr.h | ||
src/Geometry.h | ||
src/HistOutput.h | ||
src/InputAbstracts.h | ||
src/InputFileReader.h | ||
src/IntraSwap.h | ||
src/MersenneTwister.h | ||
src/MoleculeKind.h | ||
src/MoleculeLookup.h | ||
src/MoleculeTransfer.h | ||
src/Molecules.h | ||
src/MolPick.h | ||
src/MolSetup.h | ||
src/MoveBase.h | ||
src/MoveConst.h | ||
src/MoveSettings.h | ||
src/NoEwald.h | ||
src/OutConst.h | ||
src/OutputAbstracts.h | ||
src/OutputVars.h | ||
src/PDBConst.h | ||
src/PDBOutput.h | ||
src/PDBSetup.h | ||
src/PRNG.h | ||
src/PRNGSetup.h | ||
src/PSFOutput.h | ||
src/Reader.h | ||
src/SeedReader.h | ||
src/Setup.h | ||
src/SimEventFrequency.h | ||
src/Simulation.h | ||
src/StaticVals.h | ||
src/SubdividedArray.h | ||
src/System.h | ||
src/TransformMatrix.h | ||
src/Writer.h | ||
src/XYZArray.h | ||
src/cbmc/DCComponent.h | ||
src/cbmc/DCData.h | ||
src/cbmc/DCFreeHedron.h | ||
src/cbmc/DCLinkedHedron.h | ||
src/cbmc/DCGraph.h | ||
src/cbmc/DCHedron.h | ||
src/cbmc/DCLinear.h | ||
src/cbmc/DCLink.h | ||
src/cbmc/DCLinkNoDih.h | ||
src/cbmc/DCOnSphere.h | ||
src/cbmc/DCSingle.h | ||
src/cbmc/TrialMol.h) | ||
|
||
set(libHeaders | ||
lib/BasicTypes.h | ||
lib/BitLib.h | ||
lib/GeomLib.h | ||
lib/NumLib.h | ||
lib/StrLib.h | ||
lib/StrStrmLib.h | ||
lib/VectorLib.h) | ||
|
||
set(cudaHeaders | ||
src/GPU/ConstantDefinitionsCUDAKernel.cuh | ||
src/GPU/CalculateMinImageCUDAKernel.cuh | ||
src/GPU/CalculateEnergyCUDAKernel.cuh | ||
src/GPU/CalculateForceCUDAKernel.cuh | ||
src/GPU/CalculateEwaldCUDAKernel.cuh | ||
src/GPU/VariablesCUDA.cuh) | ||
|
||
set(cudaSources | ||
src/GPU/CalculateEnergyCUDAKernel.cu | ||
src/GPU/CalculateForceCUDAKernel.cu | ||
src/GPU/CalculateEwaldCUDAKernel.cu | ||
src/GPU/ConstantDefinitionsCUDAKernel.cu) | ||
|
||
source_group("Header Files" FILES ${headers}) | ||
source_group("Lib Headers" FILES ${libHeaders}) | ||
source_group("CUDA Header Files" FILES ${cudaHeaders}) | ||
source_group("CUDA Source Files" FILES ${cudaSources}) |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
if(ENSEMBLE_NVT) | ||
add_executable(NVT ${sources} ${headers} ${libHeaders}) | ||
set_target_properties(NVT PROPERTIES | ||
OUTPUT_NAME ${NVT_name} | ||
COMPILE_FLAGS "${NVT_flags}") | ||
if(WIN32) | ||
#needed for hostname | ||
target_link_libraries(NVT ws2_32) | ||
endif() | ||
endif() | ||
|
||
if(ENSEMBLE_GEMC) | ||
add_executable(GEMC ${sources} ${headers} ${libHeaders}) | ||
set_target_properties(GEMC PROPERTIES | ||
OUTPUT_NAME ${GE_name} | ||
COMPILE_FLAGS "${GE_flags}") | ||
if(WIN32) | ||
#needed for hostname | ||
target_link_libraries(GEMC ws2_32) | ||
endif() | ||
endif() | ||
|
||
if(ENSEMBLE_GCMC) | ||
add_executable(GCMC ${sources} ${headers} ${libHeaders}) | ||
set_target_properties(GCMC PROPERTIES | ||
OUTPUT_NAME ${GC_name} | ||
COMPILE_FLAGS "${GC_flags}") | ||
if(WIN32) | ||
#needed for hostname | ||
target_link_libraries(GCMC ws2_32) | ||
endif() | ||
endif() | ||
|
||
if(ENSEMBLE_NPT) | ||
add_executable(NPT ${sources} ${headers} ${libHeaders}) | ||
set_target_properties(NPT PROPERTIES | ||
OUTPUT_NAME ${NPT_name} | ||
COMPILE_FLAGS "${NPT_flags}") | ||
if(WIN32) | ||
#needed for hostname | ||
target_link_libraries(NPT ws2_32) | ||
endif() | ||
endif() | ||
|
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Find CUDA is enabled, set it up | ||
|
||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-DGOMC_CUDA) | ||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-Wno-deprecated-gpu-targets) | ||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-Xcompiler -std=c++98) | ||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-Xcompiler -D__CORRECT_ISO_CPP11_MATH_H_PROTO) | ||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_20,code=sm_20) | ||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_20,code=sm_21) | ||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_30,code=sm_30) | ||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_35,code=sm_35) | ||
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_50,code=sm_50) | ||
include_directories(src/GPU) | ||
|
||
set(GPU_NPT_flags "-DENSEMBLE=4 -DGOMC_CUDA") | ||
set(GPU_NPT_name "GOMC_GPU_NPT") | ||
set(GPU_GC_flags "-DENSEMBLE=3 -DGOMC_CUDA") | ||
set(GPU_GC_name "GOMC_GPU_GCMC") | ||
set(GPU_GE_flags "-DENSEMBLE=2 -DGOMC_CUDA") | ||
set(GPU_GE_name "GOMC_GPU_GEMC") | ||
set(GPU_NVT_flags "-DENSEMBLE=1 -DGOMC_CUDA") | ||
set(GPU_NVT_name "GOMC_GPU_NVT") | ||
|
||
##################################### | ||
if(ENSEMBLE_GPU_NVT) | ||
cuda_add_executable(GPU_NVT ${cudaSources} ${cudaHeaders} | ||
${sources} ${headers} ${libHeaders}) | ||
set_target_properties(GPU_NVT PROPERTIES | ||
OUTPUT_NAME ${GPU_NVT_name} | ||
COMPILE_FLAGS "${GPU_NVT_flags}") | ||
if(WIN32) | ||
#needed for hostname | ||
target_link_libraries(GPU_NVT ws2_32) | ||
endif() | ||
endif() | ||
|
||
if(ENSEMBLE_GPU_GEMC) | ||
cuda_add_executable(GPU_GEMC ${cudaSources} ${cudaHeaders} ${sources} | ||
${headers} ${libHeaders}) | ||
set_target_properties(GPU_GEMC PROPERTIES | ||
OUTPUT_NAME ${GPU_GE_name} | ||
COMPILE_FLAGS "${GPU_GE_flags}") | ||
if(WIN32) | ||
#needed for hostname | ||
target_link_libraries(GPU_GEMC ws2_32) | ||
endif() | ||
endif() | ||
|
||
if(ENSEMBLE_GPU_GCMC) | ||
cuda_add_executable(GPU_GCMC ${cudaSources} ${cudaHeaders} ${sources} | ||
${headers} ${libHeaders}) | ||
set_target_properties(GPU_GCMC PROPERTIES | ||
OUTPUT_NAME ${GPU_GC_name} | ||
COMPILE_FLAGS "${GPU_GC_flags}") | ||
if(WIN32) | ||
#needed for hostname | ||
target_link_libraries(GPU_GCMC ws2_32) | ||
endif() | ||
endif() | ||
|
||
if(ENSEMBLE_GPU_NPT) | ||
cuda_add_executable(GPU_NPT ${cudaSources} ${cudaHeaders} ${sources} | ||
${headers} ${libHeaders}) | ||
set_target_properties(GPU_NPT PROPERTIES | ||
OUTPUT_NAME ${GPU_NPT_name} | ||
COMPILE_FLAGS "${GPU_NPT_flags}") | ||
if(WIN32) | ||
#needed for hostname | ||
target_link_libraries(GPU_NPT ws2_32) | ||
endif() | ||
endif() |
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
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.