I use the GUI for sendmap20 currently to make the gmapsupp, and javawa to make visible in basecamp and check for missing tiles. I was wanting to script the entire sendmap20 process
Welcome to GPSFileDepot!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu-m
command but the map name in BaseCamp is just map. I am needing the map set name to carry over to all other map names, except the GMAPSUPPprint subprocess.Popen("cd c:\cgpsprocessing\cgpsrun1", shell=True, stdout=subprocess.PIPE).stdout.read()
os.chdir("c:\cgpsprocessing\cgpsrun1")
print subprocess.Popen("start /affinity 0x3 transcode.bat", shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
print("run 1 started using cores 0 & 1")
time.sleep(3)
print subprocess.Popen("cd c:\cgpsprocessing\cgpsrun2", shell=True, stdout=subprocess.PIPE).stdout.read()
os.chdir("c:\cgpsprocessing\cgpsrun2")
print subprocess.Popen("start /affinity 0xC transcode.bat", shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
print("run 2 started using cores 2 & 3")
time.sleep(3)
print subprocess.Popen("cd c:\cgpsprocessing\cgpsrun3", shell=True, stdout=subprocess.PIPE).stdout.read()
os.chdir("c:\cgpsprocessing\cgpsrun3")
print subprocess.Popen("start /affinity 0x30 transcode.bat", shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
print("run 3 started using cores 4 & 5")
time.sleep(3)
print subprocess.Popen("cd c:\cgpsprocessing\cgpsrun4", shell=True, stdout=subprocess.PIPE).stdout.read()
os.chdir("c:\cgpsprocessing\cgpsrun4")
print subprocess.Popen("start /affinity 0xC0 transcode.bat", shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
print("run 1 started using cores 6 & 7")
Quote from: popej on July 29, 2016, 11:28:32 AMthat's a good idea. I have just been using different folders with cgps in them, and at the end of a python script I had each instance wait 1 second before kicking off the next transcode.bat. I'll try your method for sure and see how many I can run safely. Do you edit the process.bat file? I'd love to check out how you scripted it.Quote from: whiskeyportal on July 28, 2016, 04:33:04 PMI have experienced the same problem, actually there are 2 separate problems. First is obvious - you should use separate temporary directory for each instance (as indicated by TEMP or TMP variable, not sure which one). Second problem is more weird, like there is some kind of crosstalk between instances. I have solved it by setting different affinity for each instance, so it runs on separate CPU core.
I run into the same issue where more than one instance starting at the same time will cause access violation errors, but usually I can have 3 instances running fine.
I usually run 8 instances at once starting them with batch that set TEMP/TMP variables and affinity for each one. Something like this:set TEMP=.\instance1
set TMP=.\instance1
start "cgpsmapper instance 1" /AFFINITY 0x01 cgpsmapper .....
Quote from: Red90 on July 29, 2016, 08:25:24 AMYou're running cgps on a VM? Are you using windows 10?
No problems here.
© 2007 - 2022 GPSFileDepot.com
A Division of OzTheory
Privacy Policy | Usage Agreement