/* * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related documentation outside the terms of the EULA * is strictly prohibited. * */ /* Volume..
/*#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..
안전한 C++ 라이프를 위한 스마트포인터에 대해 정리를 해봤습니다. (2012년 현재) 마지막 한줌의 속도라도 짜내야하는 그런 부분 제외하고는 웬만하면 C++ 말고 다른것을 사용하라고 조언드리고 싶고, Rust 의 빠른 발전을 기대합니다. 1. Scoped_ptr (boost)0. 복사불가 단일 소유자 1. 한마디로 scoped_ptr 는 복사할 수 없는 auto_ptr 이다. 2. 젤 가볍습니다. 3. 제한적이다. (한 함수 내에서만 동적할당해서 쓰다가 함수를 끝낼 때는 삭제해야 하는 임시 객체를 처리할 때도 유용하게 쓰일 수 있습니다) 4. 이 스마트포인터를 포함하고있는 클래스도 복사불가입니다. 5. "자원 획득은 초기화 이다." 만을 위해 존재한다. 레퍼런스 카운팅이 없고, 소유권공유,이전문제도 없..
- Total
- Today
- Yesterday
- CORDA
- Adapter 패턴
- 파이썬 데이터분석
- Play2
- 스칼라
- play2 강좌
- 파이썬 동시성
- 플레이프레임워크
- Hyperledger fabric gossip protocol
- play 강좌
- 스칼라 강좌
- Akka
- 안드로이드 웹뷰
- 하이퍼레저 패브릭
- 그라파나
- Actor
- hyperledger fabric
- 이더리움
- Golang
- 파이썬
- 파이썬 머신러닝
- 파이썬 강좌
- 엔터프라이즈 블록체인
- Play2 로 웹 개발
- 하이브리드앱
- 스칼라 동시성
- 블록체인
- 스위프트
- 주키퍼
- akka 강좌
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |