Skip to main content

Parallel Computing Tools

Project description

Parallel Computing Tools (This is a tool to achieve clear and safe management of memory and other resources by separating parallel computations in units of files.)

並列計算ツール (ファイルの単位で並列計算を実施することで、メモリ等の管理を明快かつ安全に実現するツールです。)

This description is under construction.

マスター側

from mult import master

input_ls = [i for i in range(10)]
output_ls = master.call(
	"path_to_slave/slave.py",	# スレーブファイル名
	input_ls,	# 入力のリスト (ジョブごと)
	n = 4,	# 並列数
	progress = True	# 進捗表示
)
print(output_ls)	# 結果の確認

スレーブ側 (slave.py)

import time, random
from mult import slave

# 実行したい処理
def heavy_process(num):
	time.sleep(random.random()*3)
	return 2**num

num = slave.get_input()
result = heavy_process(num)
slave.send_output(result)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mult-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

mult-0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file mult-0.0.1.tar.gz.

File metadata

  • Download URL: mult-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.4

File hashes

Hashes for mult-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7438c758129c67df1371088a3f088c4f675ede5440157dc658f5c76e4072361f
MD5 d1856f71bc448f2a83b139d9f4cc19f5
BLAKE2b-256 dee4aa7f8596bd4b1c40e55de6c8967fb175846886f0128e69b0ac979f577c1a

See more details on using hashes here.

File details

Details for the file mult-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mult-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.4

File hashes

Hashes for mult-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fcafc3028d3d367ae3502ff1c9d60a815cb0dbd6303e714989993fada5df3f3
MD5 91469653fa311c4f7e61942f1b11b122
BLAKE2b-256 792282f161a6660141f9c2bd1a63b16e54a2d612d432bd3b516c695faca6f2e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page