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 yertle, Yesterday, 08:38 AM
                7 responses
                28 views
                0 likes
                Last Post yertle
                by yertle
                 
                Started by bmartz, 03-12-2024, 06:12 AM
                2 responses
                21 views
                0 likes
                Last Post bmartz
                by bmartz
                 
                Started by funk10101, Today, 12:02 AM
                0 responses
                5 views
                0 likes
                Last Post funk10101  
                Started by gravdigaz6, Yesterday, 11:40 PM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by MarianApalaghiei, Yesterday, 10:49 PM
                3 responses
                11 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Working...
                X