Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

AI Generate using only 4 cores on a 12 core Ryzen CPU

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AI Generate using only 4 cores on a 12 core Ryzen CPU

    Hi there, I was playing around with AI Generate today and on my algo testing machine with high performance components (Ryzen 9 3900X 24 threads, 32GB DDR4 4000 RAM, 2TB NVME), NT8 is only using four cores and not even fully. Any idea why? I am of course using latest NT8, lifetime license and 64 bit edition.

    #2
    ...actually I meant 4 threads out of 24 threads...

    Comment


      #3
      Hello Oracletrades, thanks for your question.

      Please try running an optimization on the SampleMACrossover strategy, do you get all cores used there? All of the cores I have (4) are being used when I do an AI generate and optimization. So we might be looking at a case where AI generate uses only 4 cores whereas optimization will use all of them. If we get that kind of result, I will need to ask my supervisor on what to do.

      I look forward to hearing from you.
      Chris L.NinjaTrader Customer Service

      Comment


        #4
        Thanks for the reply. On optimization, NT does seem to use all threads, my point was about the AI Generate tool.

        Click image for larger version

Name:	Capture.PNG
Views:	333
Size:	960.7 KB
ID:	1114893
        Attached Files

        Comment


          #5
          Hi Oracletrades, thanks for your reply.

          I am getting 4 cores used on an AI generate backtest. I don't have a machine with more than 4 cores to test on so I am not sure if it's locked to 4 cores somehow or something else. I will let our development team know to look into this issue.

          Kind regards.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            Thanks, happy to provide my logs if that helps. just PM me.

            Comment


              #7
              Hello Oracletrades, thanks for your patience.

              We tested with a Ryzen CPU and we are getting all cores used. In your screen shot it looks like the rest of the cores are used, but not all the way to 100%. If that is the case then it would be the operating system handling that part, since we confirmed the design can use every core of the machine. When a C# application is made with multithreading, it doesn't need to handle the core usage, it simply needs to spawn a new thread and the operating system will determine which core that thread is ran on.


              Chris L.NinjaTrader Customer Service

              Comment


                #8
                Windows might be limiting the amount of cores NT uses. Please make sure to review this article https://www.alphr.com/enable-all-cores-windows/

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by algospoke, Today, 06:40 PM
                0 responses
                9 views
                0 likes
                Last Post algospoke  
                Started by maybeimnotrader, Today, 05:46 PM
                0 responses
                7 views
                0 likes
                Last Post maybeimnotrader  
                Started by quantismo, Today, 05:13 PM
                0 responses
                7 views
                0 likes
                Last Post quantismo  
                Started by AttiM, 02-14-2024, 05:20 PM
                8 responses
                168 views
                0 likes
                Last Post jeronymite  
                Started by cre8able, Today, 04:22 PM
                0 responses
                10 views
                0 likes
                Last Post cre8able  
                Working...
                X