Run the following command on terminal
$ sudo apt-get install libcr-dev mpich2 mpich2-doc
license: MIT |
#include <stdio.h> | |
#include <sched.h> | |
int main( int argc, char**argv ) | |
{ | |
#pragma omp parallel | |
{ | |
printf( "Hello world from thread %d of %d running on cpu %2d!\n", | |
omp_get_thread_num()+1, | |
omp_get_num_threads(), |
Original article by Mark Leair, PGI Compiler Engineer
Note: This article was revised in March 2015 and again in January 2016 to bring it up-to-date with the production software release and to correct errors in the examples.
This is Part 2 of a series of articles:
Original articles by Mark Leair, PGI Compiler Engineer
This is Part 1 of a series of articles:
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Just a quick how-to to import rules specified in .editorconfig into your stylelint configuration to avoid duplication.
Install the following packages. stylelint-config-standard
is just used as an example. Use a different one or your current configuration object.
#> (npm install -g | yarn global add) editorconfig stylelint stylelint-config-standard
#!/usr/bin/env perl | |
# This short script queries the icecream scheduler to discover what machines are connected, | |
# and sums the maximum job counts for all x86-64 machines. | |
# It can be used in your mozconfig as follows: | |
# mk_add_options MOZ_MAKE_FLAGS="-j$(icecc-jobs)" | |
# if this script is on your PATH, and named icecc-jobs | |
use List::Util qw(sum0); |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys
and look for sec
, use the key ID for the next stepgit
to use GPG -- replace the key with the one from gpg --list-secret-keys
1 - install GPG tools : https://gpgtools.org/
2 - Create new key for your github email
3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY
4 - configure git to sign all commits: git config --global commit.gpgsign true
5 - add to the bottom of ~/.gnupg/gpg.conf
: (create the file if it not exists)