Repository navigation
Gpu assignment #231
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
Open
The9Cat
wants to merge
13
commits into
devel
Choose a base branch
from
GPUassignment
base: devel
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.
+723
−84
Open
Gpu assignment #231
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a10c206
New option for Slab
8c74787
New EXP hook
ad4c774
Add build-time version generation
7fdb632
Implemented 'gpu_assignment' in the EXP 'Global' configuration.
27a58cd
Improve file existence check with error code
The9Cat dfbac27
SlabSL: use frozen k=0 coefficients in point-field potential and grad…
The9Cat 8ab2907
step: run closing COM velocity kick before step-end hook and output
The9Cat e25ef12
Synchronize output writers before CUDA hooks
The9Cat 5cdeaa9
Version bump
7862137
Logic fix
cd66836
Put module registration in anonymous namespaces for isolation
c1bd90f
- Enable a configurable module directory
35078ba
Missing configure rules for user modules
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 hidden or 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 hidden or 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,74 @@ | ||
| # GitVersion.cmake -- write git provenance into a generated source file. | ||
| # | ||
| # Run in script mode at BUILD time (from a custom target), so that the | ||
| # recorded state is always that of the tree actually being compiled, | ||
| # not that of the last `cmake` run: | ||
| # | ||
| # cmake -DGIT_EXECUTABLE=... -DSRC_DIR=<repo dir> -DTEMPLATE=<file.in> | ||
| # -DOUT=<generated file> -P GitVersion.cmake | ||
| # | ||
| # Variables available to the @VAR@ template: | ||
| # GIT_BRANCH current branch | ||
| # GIT_COMMIT full hash of HEAD; if tracked files have uncommitted | ||
| # changes: <hash>-dirty-<8 hex digits of MD5(git diff HEAD)>, | ||
| # so that every distinct uncommitted state is identifiable | ||
| # GIT_HASH same as GIT_COMMIT | ||
| # GIT_DIRTY 0 or 1 | ||
| # GIT_DATE date of the HEAD commit | ||
| # GIT_COMMIT_MSG subject line of the HEAD commit (C-string escaped) | ||
| # COMPILE_TIME time of the first build of this exact source state | ||
| # | ||
| # OUT is rewritten only when the git state changes, so an unchanged tree | ||
| # triggers no recompilation. Untracked files and changes inside | ||
| # submodules are not counted as "dirty". | ||
|
|
||
| if(NOT GIT_EXECUTABLE) | ||
| set(GIT_EXECUTABLE git) | ||
| endif() | ||
|
|
||
| macro(_git var) | ||
| execute_process(COMMAND "${GIT_EXECUTABLE}" ${ARGN} | ||
| WORKING_DIRECTORY "${SRC_DIR}" | ||
| OUTPUT_VARIABLE ${var} RESULT_VARIABLE _rc | ||
| ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
| if(NOT _rc EQUAL 0) | ||
| set(${var} "unknown") | ||
| endif() | ||
| endmacro() | ||
|
|
||
| _git(GIT_BRANCH rev-parse --abbrev-ref HEAD) | ||
| _git(GIT_COMMIT rev-parse HEAD) | ||
| _git(GIT_DATE log -1 --format=%ad --date=local) | ||
| _git(GIT_COMMIT_MSG log -1 --format=%s) | ||
| _git(_status status --porcelain --untracked-files=no --ignore-submodules=dirty) | ||
|
|
||
| set(GIT_DIRTY 0) | ||
| if(_status AND NOT _status STREQUAL "unknown") | ||
| set(GIT_DIRTY 1) | ||
| _git(_diff diff HEAD --ignore-submodules=dirty) | ||
| string(MD5 _md5 "${_diff}") | ||
| string(SUBSTRING "${_md5}" 0 8 _md5) | ||
| set(GIT_COMMIT "${GIT_COMMIT}-dirty-${_md5}") | ||
| endif() | ||
| set(GIT_HASH "${GIT_COMMIT}") | ||
|
|
||
| # Escape for use inside a C string literal | ||
| foreach(v GIT_BRANCH GIT_DATE GIT_COMMIT_MSG) | ||
| string(REPLACE "\\" "\\\\" ${v} "${${v}}") | ||
| string(REPLACE "\"" "\\\"" ${v} "${${v}}") | ||
| endforeach() | ||
|
|
||
| # Regenerate only if the state changed (the key excludes the time) | ||
| set(_key "${GIT_BRANCH}|${GIT_COMMIT}|${GIT_DATE}|${GIT_COMMIT_MSG}|${TEMPLATE}") | ||
| set(_keyfile "${OUT}.gitkey") | ||
| set(_old "") | ||
| if(EXISTS "${_keyfile}" AND EXISTS "${OUT}") | ||
| file(READ "${_keyfile}" _old) | ||
| endif() | ||
|
|
||
| if(NOT _old STREQUAL _key) | ||
| string(TIMESTAMP COMPILE_TIME "%Y-%m-%d %H:%M:%S %Z") | ||
| configure_file("${TEMPLATE}" "${OUT}" @ONLY) | ||
| file(WRITE "${_keyfile}" "${_key}") | ||
| message(STATUS "Git provenance for ${SRC_DIR}: ${GIT_BRANCH}/${GIT_COMMIT}") | ||
| endif() |
This file contains hidden or 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,64 @@ | ||
| # CMake's install manifest paths omit DESTDIR, while filesystem operations | ||
| # must use the staged path when DESTDIR is set. | ||
| if(CMAKE_INSTALL_LOCAL_ONLY) | ||
| return() | ||
| endif() | ||
| set(exp_module_destination "${CMAKE_INSTALL_PREFIX}/@EXP_USER_MODULE_DESTINATION@") | ||
| set(exp_module_directory "$ENV{DESTDIR}${exp_module_destination}") | ||
| set(exp_module_manifest "${exp_module_directory}/.exp-user-modules") | ||
|
|
||
| if(exp_module_install_begin) | ||
| file(MAKE_DIRECTORY "${exp_module_directory}") | ||
| file(LOCK "${exp_module_manifest}.lock" GUARD PROCESS TIMEOUT 60) | ||
| return() | ||
| endif() | ||
|
|
||
| # A component install cannot determine which modules have been retired. | ||
| if(NOT "${CMAKE_INSTALL_COMPONENT}" STREQUAL "") | ||
| return() | ||
| endif() | ||
|
|
||
| set(exp_module_filename_pattern "^lib[A-Za-z0-9_.+-]+\\.(so(\\.[0-9]+)*|dylib|a)$") | ||
| set(exp_module_files) | ||
| foreach(exp_installed_file IN LISTS CMAKE_INSTALL_MANIFEST_FILES) | ||
| get_filename_component(exp_installed_dir "${exp_installed_file}" DIRECTORY) | ||
| if(exp_installed_dir STREQUAL exp_module_destination) | ||
| get_filename_component(exp_installed_name "${exp_installed_file}" NAME) | ||
| if(exp_installed_name MATCHES "${exp_module_filename_pattern}") | ||
| list(APPEND exp_module_files "${exp_installed_name}") | ||
| endif() | ||
| endif() | ||
| endforeach() | ||
| list(REMOVE_DUPLICATES exp_module_files) | ||
| list(SORT exp_module_files) | ||
|
|
||
| if(IS_SYMLINK "${exp_module_manifest}" OR IS_DIRECTORY "${exp_module_manifest}") | ||
| message(FATAL_ERROR "Invalid EXP user module manifest: ${exp_module_manifest}") | ||
| endif() | ||
| if(EXISTS "${exp_module_manifest}") | ||
| file(STRINGS "${exp_module_manifest}" exp_previous_modules) | ||
| foreach(exp_previous_module IN LISTS exp_previous_modules) | ||
| # Accept library basenames only. Never remove a path outside this directory. | ||
| if(NOT exp_previous_module MATCHES "${exp_module_filename_pattern}") | ||
| message(FATAL_ERROR "Invalid entry in ${exp_module_manifest}: ${exp_previous_module}") | ||
| endif() | ||
| endforeach() | ||
| foreach(exp_previous_module IN LISTS exp_previous_modules) | ||
| if(NOT exp_previous_module IN_LIST exp_module_files) | ||
| set(exp_obsolete_module "${exp_module_directory}/${exp_previous_module}") | ||
| if(IS_DIRECTORY "${exp_obsolete_module}") | ||
| message(WARNING "Keeping directory at obsolete EXP module path: ${exp_obsolete_module}") | ||
| elseif(EXISTS "${exp_obsolete_module}" OR IS_SYMLINK "${exp_obsolete_module}") | ||
| message(STATUS "Removing obsolete EXP user module: ${exp_obsolete_module}") | ||
| file(REMOVE "${exp_obsolete_module}") | ||
| if(EXISTS "${exp_obsolete_module}" OR IS_SYMLINK "${exp_obsolete_module}") | ||
| message(FATAL_ERROR "Could not remove obsolete EXP user module: ${exp_obsolete_module}") | ||
| endif() | ||
| endif() | ||
| endif() | ||
| endforeach() | ||
| endif() | ||
|
|
||
| list(JOIN exp_module_files "\n" exp_module_contents) | ||
| file(CONFIGURE OUTPUT "${exp_module_manifest}.tmp" CONTENT "${exp_module_contents}\n" @ONLY) | ||
| file(RENAME "${exp_module_manifest}.tmp" "${exp_module_manifest}") |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,14 @@ | ||
| // Generated at build time by cmake/GitVersion.cmake -- do not edit. | ||
| // | ||
| // Kept separate from config_exp.h so that a change of the git state | ||
| // recompiles only the few files that report it. | ||
| #pragma once | ||
|
|
||
| //! Current git branch | ||
| #define GIT_BRANCH "@GIT_BRANCH@" | ||
|
|
||
| //! Git commit hash; <hash>-dirty-<diff fingerprint> for uncommitted changes | ||
| #define GIT_COMMIT "@GIT_COMMIT@" | ||
|
|
||
| //! Time of the first build of this source state | ||
| #define COMPILE_TIME "@COMPILE_TIME@" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.