Announcement

Collapse
No announcement yet.

Stream with openmp support and O2 flags

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

  • Stream with openmp support and O2 flags

    I tried the steam benchmark today and found it was build without optimizations and without openmp support, so single threaded.

    So I modified the install.sh abit
    Code:
    #!/bin/sh
    
    tar -xvf stream-2009-04-11.tar.gz
    cc stream.c -O2 -fopenmp -o stream-bin
    echo \$? > ~/test-exit-status
    
    echo "#!/bin/sh
    export OMP_NUM_THREADS=\$NUM_CPU_CORES
    ./stream-bin > \$LOG_FILE 2>&1
    echo \$? > ~/test-exit-status" > stream
    chmod +x stream
    Here's a comparison (also including an icc 11.1 version)

  • #2
    Thanks, pushed in Git.
    Michael Larabel
    https://www.michaellarabel.com/

    Comment

    Working...
    X