Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Add version
Browse files Browse the repository at this point in the history
  • Loading branch information
alfpark committed Oct 5, 2016
1 parent 3590f7b commit d83d39f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Change Log

## [Unreleased]

## [1.1.0] - 2016-10-05
### Added
- Transparent Infiniband assist for SUSE SLES-HPC 12-SP1 image
- Add version for shipyard.py script
- NAMD-GPU, OpenFOAM-Infiniband-IntelMPI, Torch-CPU, Torch-GPU recipes

### Changed
Expand Down Expand Up @@ -78,7 +81,8 @@ transfer is disabled
#### Added
- Initial release

[Unreleased]: https://github.com/Azure/batch-shipyard/compare/1.0.0...HEAD
[Unreleased]: https://github.com/Azure/batch-shipyard/compare/1.1.0...HEAD
[1.1.0]: https://github.com/Azure/batch-shipyard/compare/1.0.0...1.1.0
[1.0.0]: https://github.com/Azure/batch-shipyard/compare/0.2.0...1.0.0
[0.2.0]: https://github.com/Azure/batch-shipyard/compare/0.1.0...0.2.0
[0.1.0]: https://github.com/Azure/batch-shipyard/compare/ab1fa4d...0.1.0
Expand Down
2 changes: 1 addition & 1 deletion docs/80-batch-shipyard-multi-instance-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ the context of Azure Batch, Docker, and Batch Shipyard.
## Overview
Multi-instance tasks are a special type of task in Azure Batch that are
primarily targeted for an execution that requires multiple compute nodes in
order to run. The typical use case for multi-instance tasks are MPI jobs.
order to run. The canonical use case for multi-instance tasks are MPI jobs.
MPI jobs are typically run on a cluster of nodes where each node participates
in the execution by performing computation on a part of the problem and
coordinates with other nodes to reach a solution.
Expand Down
3 changes: 3 additions & 0 deletions shipyard.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# create logger
logger = logging.getLogger('shipyard')
# global defines
_VERSION = '1.1.0'
_PY2 = sys.version_info.major == 2
_ON_WINDOWS = platform.system() == 'Windows'
_AZUREFILE_DVD_BIN = {
Expand Down Expand Up @@ -242,6 +243,7 @@ def _create_credentials(config):
batch_client = batch.BatchServiceClient(
credentials,
base_url=config['credentials']['batch']['account_service_url'])
batch_client.config.add_user_agent('batch-shipyard/{}'.format(_VERSION))
blob_client = azureblob.BlockBlobService(
account_name=_STORAGEACCOUNT,
account_key=_STORAGEACCOUNTKEY,
Expand Down Expand Up @@ -2366,6 +2368,7 @@ def parseargs():
'--filespec',
help='parameter for action streamfile/gettaskfile: '
'jobid:taskid:filename')
parser.add_argument('--version', action='version', version=_VERSION)
return parser.parse_args()

if __name__ == '__main__':
Expand Down

0 comments on commit d83d39f

Please sign in to comment.