meaningful input to submit script
This commit is contained in:
parent
f125a653b1
commit
89da68878a
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
from multiprocessing.managers import BaseManager
|
from multiprocessing.managers import BaseManager
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@ -13,8 +15,10 @@ m = QueueManager(address=('gannon', 50000), authkey='asdf')
|
|||||||
m.connect()
|
m.connect()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
count = int(sys.argv[1])
|
||||||
|
|
||||||
inq = m.get_inqueue()
|
inq = m.get_inqueue()
|
||||||
|
|
||||||
for i in xrange(1000):
|
for i in xrange(count):
|
||||||
X = np.random.random((1,3))[0]
|
X = np.random.random((1,3))[0]
|
||||||
inq.put((i,X))
|
inq.put((i,X))
|
||||||
|
Loading…
Reference in New Issue
Block a user