Changeset 249a7c6 in sasview
- Timestamp:
- Jun 4, 2014 5:13:05 PM (11 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 191c648
- Parents:
- 880f170
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/fit/BumpsFitting.py
r35086c3 r249a7c6 2 2 BumpsFitting module runs the bumps optimizer. 3 3 """ 4 import os 4 5 from datetime import timedelta, datetime 5 6 … … 7 8 8 9 from bumps import fitters 9 from bumps.mapper import SerialMapper 10 from bumps.mapper import SerialMapper, MPMapper 10 11 from bumps import parameter 11 12 from bumps.fitproblem import FitProblem … … 294 295 fitdriver = fitters.FitDriver(fitclass, problem=problem, 295 296 abort_test=abort_test, **options) 296 mapper = SerialMapper 297 omp_threads = int(os.environ.get('OMP_NUM_THREADS','0')) 298 mapper = MPMapper if omp_threads == 1 else SerialMapper 297 299 fitdriver.mapper = mapper.start_mapper(problem, None) 298 300 #import time; T0 = time.time()
Note: See TracChangeset
for help on using the changeset viewer.