tgmattso / openmp_common_core Goto Github PK
View Code? Open in Web Editor NEWThis repository holds the exercises for the OpenMP common core tutorial
This repository holds the exercises for the OpenMP common core tutorial
Hi Tim,
Sorry for contacting you this way but I am really struggling with openmp after going through your course on YouTube.
I have profiled the parallel and serial version of the following code and came up with the following results :
Program was compiled and run like this (source code here https://github.com/kidharb/openmp/blob/master/matmul.c)
I am not doing any data work in the for loops to rule out false sharing.
System is mid 2012 Macbook Pro, Core i7 2.6Ghz, MacOS 10.13.6, 8Gb Ram, gcc version 8.3.0.
Can you help me understand what I am doing wrong so as to get the results below?
gcc -fopenmp matmul.c ; ./a.out 100
N = 10
Serial took 0.400001 usec
Parallel took 42.020000 usec
N = 100
Serial took 42.660000 usec
Parallel took 70.090000 usec
N = 1000
Serial took 4230.839998 usec
Parallel took 3043.949998 usec
OpenMP Env
OPENMP DISPLAY ENVIRONMENT BEGIN
_OPENMP = '201511'
OMP_DYNAMIC = 'FALSE'
OMP_NESTED = 'FALSE'
OMP_NUM_THREADS = '8'
OMP_SCHEDULE = 'DYNAMIC'
OMP_PROC_BIND = 'FALSE'
OMP_PLACES = ''
OMP_STACKSIZE = '2097152'
OMP_WAIT_POLICY = 'PASSIVE'
OMP_THREAD_LIMIT = '4294967295'
OMP_MAX_ACTIVE_LEVELS = '2147483647'
OMP_CANCELLATION = 'FALSE'
OMP_DEFAULT_DEVICE = '0'
OMP_MAX_TASK_PRIORITY = '0'
OPENMP DISPLAY ENVIRONMENT END
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.