[llvm-commits] [test-suite] r173057 - /test-suite/trunk/SingleSource/Benchmarks/SmallPT/smallpt.cpp

Paul Redmond paul.redmond at intel.com
Mon Jan 21 08:49:00 PST 2013


Author: predmond
Date: Mon Jan 21 10:49:00 2013
New Revision: 173057

URL: http://llvm.org/viewvc/llvm-project?rev=173057&view=rev
Log:
Re-enable #pragma openmp as suggested by Duncan Sands

- openmp is supported by dragonegg
- #pragma openmp is ignored by clang

Modified:
    test-suite/trunk/SingleSource/Benchmarks/SmallPT/smallpt.cpp

Modified: test-suite/trunk/SingleSource/Benchmarks/SmallPT/smallpt.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/SmallPT/smallpt.cpp?rev=173057&r1=173056&r2=173057&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/SmallPT/smallpt.cpp (original)
+++ test-suite/trunk/SingleSource/Benchmarks/SmallPT/smallpt.cpp Mon Jan 21 10:49:00 2013
@@ -76,7 +76,7 @@
   int w=1024, h=768, samps = argc==2 ? atoi(argv[1])/4 : 1; // # samples
   Ray cam(Vec(50,52,295.6), Vec(0,-0.042612,-1).norm()); // cam pos, dir
   Vec cx=Vec(w*.5135/h), cy=(cx%cam.d).norm()*.5135, r, *c=new Vec[w*h];
-  //#pragma omp parallel for schedule(dynamic, 1) private(r)       // OpenMP
+  #pragma omp parallel for schedule(dynamic, 1) private(r)       // OpenMP
   fprintf(stderr,"Rendering (%d spp)\n",samps*4);
   for (int y=0; y<h; y++){                       // Loop over image rows
     //fprintf(stderr,"\rRendering (%d spp) %5.2f%%",samps*4,100.*y/(h-1));





More information about the llvm-commits mailing list