From cfb412d2a5cf91f46a573434bfd75d1df1aa7951 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 26 Nov 2015 14:30:51 +0100 Subject: [PATCH] bak --- c/.gitignore | 1 + gcc/builtin_expect.c | 14 -------------- glibc/source-tree.md | 2 ++ opencl/applications.md | 8 ++++++++ opencl/bibliography.md | 28 ++++++++++++++++++++++++++-- opencl/introduction.md | 11 +++++++++-- opengl/bibliography.md | 4 ++++ opengl/introduction.md | 4 ++++ 8 files changed, 54 insertions(+), 18 deletions(-) create mode 100644 c/.gitignore create mode 100644 opencl/applications.md diff --git a/c/.gitignore b/c/.gitignore new file mode 100644 index 0000000..5f1048f --- /dev/null +++ b/c/.gitignore @@ -0,0 +1 @@ +tmp.c diff --git a/gcc/builtin_expect.c b/gcc/builtin_expect.c index 6672d2c..59a0f09 100644 --- a/gcc/builtin_expect.c +++ b/gcc/builtin_expect.c @@ -1,24 +1,10 @@ /* # builtin_expect - Basis for the `likely` and `unlikely` macros used extensively on the Linux kernel to help with branch prediction: - - #define likely(x) __builtin_expect(!!(x), 1) - #define unlikely(x) __builtin_expect(!!(x), 0) - - Says that we expect the left side expression and the right side long value to be the same almost always. - - May reorder statements so that the likely side comes first to improve the CPU pipeline: - http://stackoverflow.com/questions/109710/likely-unlikely-macros-in-the-linux-kernel-how-do-they-work-whats-their - http://stackoverflow.com/questions/7346929/why-do-we-use-builtin-expect-when-a-straightforward-way-is-to-use-if-else - http://unix.stackexchange.com/questions/11597/what-is-the-difference-between-likely-and-unlikely-calls-in-kernel - - For this reason, you should always put the more likely branch first when - coding regardless of using this extension. - - Good luck on making it generate noticeably more efficient code however: - http://stackoverflow.com/questions/1851299/is-it-possible-to-tell-the-branch-predictor-how-likely-it-is-to-follow-the-branc */ #include "common.h" diff --git a/glibc/source-tree.md b/glibc/source-tree.md index 9f9699d..428a56b 100644 --- a/glibc/source-tree.md +++ b/glibc/source-tree.md @@ -1,5 +1,7 @@ # Source tree +## Online browsing + ## manual ## Documentation diff --git a/opencl/applications.md b/opencl/applications.md new file mode 100644 index 0000000..df26d67 --- /dev/null +++ b/opencl/applications.md @@ -0,0 +1,8 @@ +# Applications + +- Monte Carlo + +- PDEs + + - + - Reverse Time Migration: RTM diff --git a/opencl/bibliography.md b/opencl/bibliography.md index 5512d35..a852e77 100644 --- a/opencl/bibliography.md +++ b/opencl/bibliography.md @@ -7,6 +7,30 @@ Tutorials with sample code: -- -- Did not work out of the box for me. +- hosts the samples from . But a header is missing: +- AMD samples. TODO could not find them yet... +- Worked after `sudo apt-get install libxmu-dev libxi-dev`. - The book is commercial. +- Simple hello world. + +Demos: + +- + +Big programs: + +- + + - + - + - + +- + +- Computer vision: + + - Hough transform: + +- Interactive fluid simulations + + - diff --git a/opencl/introduction.md b/opencl/introduction.md index 7c92127..3ee8aab 100644 --- a/opencl/introduction.md +++ b/opencl/introduction.md @@ -40,6 +40,13 @@ MIT and LLVM based. ## Alternatives -- OpenMP: +- NVIDIA's +- OpenMP +- Intel's +- Microsoft's - -- + +## OpenCL + OpenGL for real time rendering of complex calculations + +- +- diff --git a/opengl/bibliography.md b/opengl/bibliography.md index 3dc298c..5c987a9 100644 --- a/opengl/bibliography.md +++ b/opengl/bibliography.md @@ -6,3 +6,7 @@ - 2.1 spec - 2.1 online reference + +- Demos: + + - diff --git a/opengl/introduction.md b/opengl/introduction.md index 7245789..cb0ea29 100644 --- a/opengl/introduction.md +++ b/opengl/introduction.md @@ -51,3 +51,7 @@ Good way to get information on OpenGL in Linux: glxinfo | grep -i opengl Made for the X Window System, but also shows OpenGL information. + +## Users + +- OpenGL rendering front-end that supports multiple backends, including Direct3D as well. Not a full game engine.