jansel / opentuner

An extensible framework for program autotuning
http://opentuner.org/
MIT License
395 stars 115 forks source link

'overflow encountered in exp' followed by traceback #35

Open jbosboom opened 10 years ago

jbosboom commented 10 years ago

SMB demo, using PSO_GA_DE technique and parallelism 10, after 340 trials. Not sure what's going on here, but I've seen this warning followed by a traceback a couple of times.

/home/jbosboom/opentuner/opentuner/search/manipulator.py:516: RuntimeWarning: overflow encountered in exp
  s = k / (1 + numpy.exp(-v)) + vmin
Traceback (most recent call last):
  File "./smb-opentuner.py", line 168, in <module>
    SMBMI.main(args)
  File "/home/jbosboom/opentuner/opentuner/measurement/interface.py", line 240, in main
    return TuningRunMain(cls(args, *pargs, **kwargs), args).main()
  File "/home/jbosboom/opentuner/opentuner/tuningrunmain.py", line 194, in main
    self.search_driver.main()
  File "/home/jbosboom/opentuner/opentuner/search/driver.py", line 234, in main
    self.run_generation_results(offset=-self.args.pipelining)
  File "/home/jbosboom/opentuner/opentuner/search/driver.py", line 171, in run_generation_results
    self.wait_for_results(self.generation + offset)
  File "/home/jbosboom/opentuner/opentuner/tuningrunmain.py", line 210, in results_wait
    self.measurement_driver.process_all()
  File "/home/jbosboom/opentuner/opentuner/measurement/driver.py", line 183, in process_all
    thread_args).get(9999999)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 558, in get
    raise self._value
TypeError: integer argument expected, got float
jansel commented 10 years ago

@soundnsilence can you look at this -- the error is sv_swarm

minshuzhan commented 10 years ago

Numpy's exp function can have overflow when the input is big. Without running the application I'm afraid I cannot immediately see why the '-v' increases so much though. Is the TypeError is related to this?

On Thu, Jun 19, 2014 at 7:38 PM, Jason Ansel notifications@github.com wrote:

@soundnsilence https://github.com/soundnsilence can you look at this -- the error is sv_swarm

— Reply to this email directly or view it on GitHub https://github.com/jansel/opentuner/issues/35#issuecomment-46630402.