Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Use the GPU during optimisation

    General Discussion
    2
    3
    1668
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cortex last edited by

      Hello,
      does anyone knows if it is possible to use the GPU during the optimisation ?
      I have seen the parameter maxcpu but I don't if it include GPU.
      https://www.backtrader.com/docu/optimization-improvements.html

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        The optimization is based on the standard multiprocessing module.

        Moving that to the GPU would require for example adding PyCuda. A quick glance at the documentation shows that code has to be written specifically for it. It is not simply meant to replace multiprocessing

        An alternative would be to use numba for CUDA, which would require lots of decoration with unknown results. Furthermore the numba approach is probably numpy array centered and as such unlikely to produce a huge benefit given the non-use of numpy arrays.

        A migration to an architecture with underlying numpy arrays would be required. A possibility would be dask, which follows thepandas paradigms whilst at the same time allowing distribution and GPU usage (by means of numba)

        Short answer: no.

        1 Reply Last reply Reply Quote 1
        • C
          cortex last edited by

          Thank you , My dream was it would be simple to implement . Now , back to the reality :) good night

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
          $(document).ready(function () { app.coldLoad(); }); }