The Path from Multicore to Manycore: Listing 2.

Parallel implementation of Fibonacci code.

int fib (int n) {
  if (n <= 2)
    return n;
  else {
    int x,y;
    x = cilk_spawn fib(n-1);
    y = fib(n-2);
    cilk_sync;
    return x+y;
  }
}
comments powered by Disqus

Featured

  • Logistic Regression with Batch SGD Training and Weight Decay Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end program that explains how to perform binary classification (predicting a variable with two possible discrete values) using logistic regression, where the prediction model is trained using batch stochastic gradient descent with weight decay.

  • Dev Asks, and 7 Years Later Python in VS Code Delivers Django Unit Test Support

    "We are excited to announce support for one of our most requested features: you can now discover and run Django unit tests through the Test Explorer!"

  • OData Finally Ditches Old .NET Framework

    "The most disruptive change we are making in this release is dropping support for .NET Framework."

  • .NET MAUI, ASP.NET Core Polished in First Release Candidate for .NET 9

    Microsoft shipped the first release candidate for .NET 9, which is nearing feature completeness and production readiness in advance of its November debut.

Subscribe on YouTube