Changeset 18839 for trunk/pswarp/src/pswarpArguments.c
- Timestamp:
- Jul 31, 2008, 2:13:59 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpArguments.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpArguments.c
r18558 r18839 40 40 psArgumentRemove(N, &argc, argv); 41 41 } 42 43 // Number of threads 44 if ((N = psArgumentGet(argc, argv, "-threads"))) { 45 psArgumentRemove(N, &argc, argv); 46 int nThreads = atoi(argv[N]); 47 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "NTHREADS", 0, "number of warp threads", nThreads); 48 psArgumentRemove(N, &argc, argv); 49 50 // create the thread pool with number of desired threads, supplying our thread launcher function 51 // XXX need to determine the number of threads from the config data 52 psThreadPoolInit (nThreads); 53 } 54 pswarpSetThreads (); 42 55 43 56 // PSF determination?
Note:
See TracChangeset
for help on using the changeset viewer.
