[yt-svn] commit/yt: ngoldbaum: Correcting a typo in the dynamic scheduler.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jun 12 14:28:36 PDT 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/c4ac1f45dff0/
Changeset: c4ac1f45dff0
Branch: yt
User: ngoldbaum
Date: 2013-06-12 23:26:05
Summary: Correcting a typo in the dynamic scheduler.
Affected #: 1 file
diff -r bc3f6a77ac2a5b23092c9a7aa771ac5438635b33 -r c4ac1f45dff060da1de9df992eee835cdf9169ce yt/utilities/parallel_tools/task_queue.py
--- a/yt/utilities/parallel_tools/task_queue.py
+++ b/yt/utilities/parallel_tools/task_queue.py
@@ -133,14 +133,14 @@
comm = _get_comm(())
if not parallel_capable:
mylog.error("Cannot create task queue for serial process.")
- raise RunTimeError
+ raise RuntimeError
my_size = comm.comm.size
if njobs <= 0:
njobs = my_size - 1
if njobs >= my_size:
mylog.error("You have asked for %s jobs, but only %s processors are available.",
njobs, (my_size - 1))
- raise RunTimeError
+ raise RuntimeError
my_rank = comm.rank
all_new_comms = np.array_split(np.arange(1, my_size), njobs)
all_new_comms.insert(0, np.array([0]))
@@ -161,14 +161,14 @@
comm = _get_comm(())
if not parallel_capable:
mylog.error("Cannot create task queue for serial process.")
- raise RunTimeError
+ raise RuntimeError
my_size = comm.comm.size
if njobs <= 0:
njobs = my_size - 1
if njobs >= my_size:
mylog.error("You have asked for %s jobs, but only %s processors are available.",
njobs, (my_size - 1))
- raise RunTimeError
+ raise RuntimeError
my_rank = comm.rank
all_new_comms = np.array_split(np.arange(1, my_size), njobs)
all_new_comms.insert(0, np.array([0]))
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list