Changeset 1233
- Timestamp:
- Nov 25, 2008 9:34:52 AM (15 years ago)
- Location:
- trunk/packages/vizservers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanoscale/server.c
r1232 r1233 39 39 fd_set pipe_rfds; // Descriptors that are pipes to children. 40 40 fd_set service_rfds[MAX_SERVICES]; 41 int max Screens = 1;42 int nRequests= -1;41 int maxCards = 1; 42 int dispNum = -1; 43 43 char displayVar[200]; 44 44 … … 244 244 245 245 switch(c) { 246 case 'x': /* Number of screens */246 case 'x': /* Number of video cards */ 247 247 maxScreens = strtoul(optarg, 0, 0); 248 if ((max Screens < 1) || (maxScreens > 10)) {249 fprintf(stderr, "bad number of max screens specified\n");248 if ((maxCards < 1) || (maxCards > 10)) { 249 fprintf(stderr, "bad number of max videocards specified\n"); 250 250 return 1; 251 251 } … … 582 582 perror("fcntl"); 583 583 } 584 nRequests++; 585 584 dispNum++; 585 if (dispNum >= maxCards) { 586 dispNum = 0; 587 } 586 588 // Fork the new process. Connect i/o to the new socket. 587 589 status = fork(); … … 608 610 close(fd); 609 611 610 if (maxScreens > 1) { 611 int dispNum; 612 613 dispNum = nRequests % maxScreens; 612 if (maxCards > 1) { 614 613 displayVar[11] = dispNum + '0'; 615 614 } -
trunk/packages/vizservers/start_viz.sh.in
r1231 r1233 25 25 export PATH LD_LIBRARY_PATH PYMOL_PATH 26 26 27 n screens=`lspci | fgrep VGA | wc -l`28 nanoscale="${dir}/bin/nanoscale - S${nscreens} -b $nanoscale_port -s $broadcast"27 nvideo=`lspci | fgrep VGA | wc -l` 28 nanoscale="${dir}/bin/nanoscale -x ${nvideo} -b $nanoscale_port -s $broadcast" 29 29 nanovis="${dir}/bin/nanovis -p ${dir}/lib/shaders:${dir}/lib/resources" 30 30 pymolproxy="${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0"
Note: See TracChangeset
for help on using the changeset viewer.