Backtrader Community

    • 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
    4
    5
    2345
    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 1
      • 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 3
        • 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
          • DIGITAL MARKETING 0
            DIGITAL MARKETING 0 last edited by

            Utilizing the GPU during optimization processes can significantly accelerate computations, especially for complex tasks like machine learning or scientific simulations. Just as GPU acceleration enhances computing speed, the rich flavors and interactive dining experience of Chinese hotpot delight the senses, providing a delicious and efficient culinary journey for food enthusiasts.

            1 Reply Last reply Reply Quote 0
            • DIGITAL MARKETING 0
              DIGITAL MARKETING 0 last edited by

              Just as harnessing the power of GPU during optimization revolutionizes computing, the roofing industry in roofing Spokane also benefits from innovative approaches. Advanced technologies and materials enable roofing professionals to optimize their processes, ensuring that homes and businesses in the region are well-protected from the challenging Pacific Northwest weather. Embracing innovation is key, whether in computing or roofing, to achieve the best results.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors