일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- 주키퍼
- CORDA
- 이더리움
- 그라파나
- 스칼라 동시성
- Adapter 패턴
- 파이썬
- 하이퍼레저 패브릭
- 블록체인
- Golang
- 파이썬 머신러닝
- 파이썬 데이터분석
- 안드로이드 웹뷰
- 파이썬 강좌
- 하이브리드앱
- play2 강좌
- hyperledger fabric
- Akka
- Play2 로 웹 개발
- play 강좌
- 스칼라
- Play2
- 파이썬 동시성
- 스위프트
- 스칼라 강좌
- akka 강좌
- Hyperledger fabric gossip protocol
- 엔터프라이즈 블록체인
- 플레이프레임워크
- Actor
- Today
- Total
목록OpenMP,PPL (4)
HAMA 블로그
/*#include #include #include #include int num_steps=500000000; #define OPENMPint main(){int i;double x, step, sum = 0.0;step = 1.0/(double) num_steps; boost::timer t; #ifdef NOOPENMPfor (i=0; i
/*#include #include #include #include const int num_steps=100; int main(){boost::timer t; int sum = 0, i = 0;int Data[num_steps] = {0}; for(i =0 ; i < num_steps; i++){Data[i] = i + 1;}#pragma omp parallel for reduction(+:sum)for(i = 0 ; i < num_steps; i++){sum += Data[i];} printf(" 총합 sum = %d \n", sum); double t2_insert = t.elapsed();printf("time: %.8lf \n", t2_insert); return EXIT_SUCCESS;}*/
/*#include #include #include #include int num_steps=100; int main(){boost::timer t; int a = 0;printf("main area / a = %d \n", a);#pragma omp parallel default(none) private(a) // default(shared) {if( omp_get_thread_num() == 0) a = 1;else a = 2; printf("%d thread area / a = %d \n", omp_get_thread_num(), a);} printf("main area / a = %d \n", a);double t2_insert = t.elapsed();printf("time: %.8lf \n",..
/*#include #include #include #include const int num_steps=1000; int main(){boost::timer t; int sum = 0, i = 0; float * Data = new float[num_steps]; for(i =0 ; i < num_steps; i++){Data[i] = i;}float max = 0;#pragma omp parallel for for(i = 0 ; i < num_steps; i++){#pragma omp critical (MAXVALUE){if(max < Data[i])max = Data[i];}} printf(" max = %f \n", max); double t2_insert = t.elapsed();printf("t..