青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

chaogu ---大寫的人!

LOG-2011-04

 

//============================================================

//============================================================

DATE:2011-4-12

TIME:01:18

ICBC.pdf –finish

//============================================================

//============================================================

DATE:2011-4-15

TIME:00:00

Reading the “NoSQL Datebase”

   Reason for use NoSQL

1. Avoidance of Unneeded Complexity

2. High Throughput

3. Horizontal Scalability and Running on Commodity Hardware

4. Avoidance of Expensive Object-Relational Mapping

5. Complexity and Cost of Setting up Database Clusters

6. Compromising Reliability for Better Performance

7. The Current “One size fit’s it all” Databases Thinking Was and Is Wrong

8. The Myth of Effortless Distribution and Partitioning of Centralized Data Models

9. Movements in Programming Languages and Development Frameworks

10. Requirements of Cloud Computing

11. The RDBMS plus Caching-Layer Pattern/Workaround vs. Systems Built from Scratch with Scalability in Mind

12. Yesterday’s vs. Today’s Needs

Nosqldbs.pdf ----page19

 

//============================================================
//============================================================
DATE:2011-4-16

TIME:00:24

Reading the cudaArticle—05

A multiprocessor takes four clock cycles to issue one memory instruction for a "warp"

Accessing local or global memory incurs an additional 400 to 600 clock cycles of memory latency

-----------------------------------

Cuda Memory

Registers:

The fastest form of memory on the multi-processor.

Is only accessible by the thread.

Has the lifetime of the thread.

Shared Memory:

Can be as fast as a register when there are no bank conflicts or when reading from the same address.

Accessible by any thread of the block from which it was created.

Has the lifetime of the block.

Global memory:

Potentially 150x slower than register or shared memory -- watch out for uncoalesced reads and writes which will be discussed in the next column.

Accessible from either the host or device.

Has the lifetime of the application.

Local memory:

A potential performance gotcha, it resides in global memory and can be 150x slower than register or shared memory.

Is only accessible by the thread.

Has the lifetime of the thread.

 

// includes, system
#include <stdio.h>
#include <assert.h>
 
// Simple utility function to check for CUDA runtime errors
void checkCUDAError(const char* msg);
 
// Part 2 of 2: implement the fast kernel using shared memory
__global__ void reverseArrayBlock(int *d_out, int *d_in)
{
    extern __shared__ int s_data[];
 
    int inOffset = blockDim.x * blockIdx.x;
    int in = inOffset + threadIdx.x;
 
    // Load one element per thread from device memory and store it 
    // *in reversed order* into temporary shared memory
    s_data[blockDim.x - 1 - threadIdx.x] = d_in[in];
 
// Block until all threads in the block have written 
//their data to shared mem
    __syncthreads();
 
    // write the data from shared memory in forward order, 
    // but to the reversed block offset as before
 
    int outOffset = blockDim.x * (gridDim.x - 1 - blockIdx.x);
 
    int out = outOffset + threadIdx.x;
    d_out[out] = s_data[threadIdx.x];
}
 
////////////////////////////////////////////////////////////////////
// Program main
////////////////////////////////////////////////////////////////////
int main( int argc, char** argv) 
{
    // pointer for host memory and size
    int *h_a;
    int dimA = 256 * 1024; // 256K elements (1MB total)
 
    // pointer for device memory
    int *d_b, *d_a;
 
    // define grid and block size
    int numThreadsPerBlock = 256;
 
// Compute number of blocks needed based on array size 
//and desired block size
    int numBlocks = dimA / numThreadsPerBlock; 
 
    // Part 1 of 2: Compute the number of bytes of shared memory needed
    // This is used in the kernel invocation below
    int sharedMemSize = numThreadsPerBlock * sizeof(int);
 
    // allocate host and device memory
    size_t memSize = numBlocks * numThreadsPerBlock * sizeof(int);
    h_a = (int *) malloc(memSize);
    cudaMalloc( (void **) &d_a, memSize );
    cudaMalloc( (void **) &d_b, memSize );
 
    // Initialize input array on host
    for (int i = 0; i < dimA; ++i) {
        h_a[i] = i;
    }
 
    // Copy host array to device array
    cudaMemcpy( d_a, h_a, memSize, cudaMemcpyHostToDevice );
 
    // launch kernel
    dim3 dimGrid(numBlocks);
    dim3 dimBlock(numThreadsPerBlock);
reverseArrayBlock<<< dimGrid, dimBlock, sharedMemSize >>>( d_b, d_a );
 
    // block until the device has completed
    cudaThreadSynchronize();
 
    // check if kernel execution generated an error
    // Check for any CUDA errors
    checkCUDAError("kernel invocation");
 
    // device to host copy
    cudaMemcpy( h_a, d_b, memSize, cudaMemcpyDeviceToHost );
 
    // Check for any CUDA errors
    checkCUDAError("memcpy");
 
    // verify the data returned to the host is correct
    for (int i = 0; i < dimA; i++){
        assert(h_a[i] == dimA - 1 - i );
    }
 
    // free device memory
    cudaFree(d_a);
    cudaFree(d_b);
 
    // free host memory
    free(h_a);
 
// If the program makes it this far, 
//then the results are correct and
    // there are no run-time errors. Good work!
    printf("Correct!\n");
 
    return 0;
}
 
void checkCUDAError(const char *msg)
{
    cudaError_t err = cudaGetLastError();
    if( cudaSuccess != err) 
    {
        fprintf(stderr, "Cuda error: %s: %s.\n", msg, 
                          cudaGetErrorString( err) );
        exit(EXIT_FAILURE);
    }                         
}

 

//============================================================

TIME:01:16

Finsh reading the cudaArticle 06

 

//============================================================

DATE:2011-4-23

TIME:09:31

Reading berkeley view on cloud computing

   Page 10 classes of utility computing

 

//============================================================

DATE:2011-4-24

TIME:00:16

Reading Makefile.pdf

 

--------------------------------------------------------------

List macros specified by defalut(Makefile)

   Using : make –p

$@ name of target

$? List of dependents

$^ gives all dependencies,whether more recent than the target

$+ same as above,but keep the duplicate names

$< the first dependencies

 

--------------------------------------------------------------

Reading berkeley view on cloud computing

   Page 19 Number 5 Obstacle: Performance Unpredictability

 

//============================================================

//============================================================

DATE:2011-4-25

TIME:01:40

Finish reading Berkeley view on cloud computing

 

//============================================================

//============================================================

DATE:2011-4-28

TIME:21:22

Coding the motion project

The Visual Studio 2005 return an error that stack overflow

“Unhandled exception at 0x00439a57 in motion.exe: 0xC00000FD: Stack overflow.”

 

--------------------------------------------------------------

'motion.exe': Unloaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\msvcr80.dll'

'motion.exe': Unloaded 'C:\WINDOWS\system32\psapi.dll'

'motion.exe': Unloaded 'C:\WINDOWS\system32\shimeng.dll'

First-chance exception at 0x00439a57 in motion.exe: 0xC00000FD: Stack overflow.

Unhandled exception at 0x00439a57 in motion.exe: 0xC00000FD: Stack overflow.

The program '[2388] motion.exe: Native' has exited with code 0 (0x0).

--------------------------------------------------------------

Problem: using huge big objet

 

//============================================================

//============================================================

DATE:2011-4-30

TIME:01:40

Coding CSE332 project 2

   Adding other data-counter Implementations

 

posted on 2011-05-03 21:57 chaogu 閱讀(715) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


導(dǎo)航

<2011年5月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

統(tǒng)計(jì)

常用鏈接

留言簿(1)

隨筆檔案

搜索

最新評論

閱讀排行榜

評論排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲人成啪啪网站| 亚洲尤物视频在线| 欧美高清在线一区二区| 亚洲国产另类精品专区| 亚洲国产精品女人久久久| 日韩视频永久免费| 午夜久久福利| 久久久久国产精品www| 亚久久调教视频| 国一区二区在线观看| 免费欧美在线| 欧美日韩亚洲一区二| 亚洲欧美韩国| 久久久亚洲精品一区二区三区| 亚洲国产成人午夜在线一区| 亚洲激情中文1区| 国产精品久久久亚洲一区| 欧美尤物巨大精品爽| 玖玖精品视频| 亚洲一区二区高清| 久久精品亚洲精品国产欧美kt∨| 亚洲国产精品一区二区第四页av| 91久久综合亚洲鲁鲁五月天| 国产精品日韩精品| 免费不卡视频| 国产精品区一区| 欧美好吊妞视频| 国产精品久久久久国产a级| 久久婷婷一区| 欧美婷婷久久| 亚洲电影下载| 国产亚洲激情在线| 亚洲精品一区二区三区四区高清| 国产亚洲人成网站在线观看| 最新高清无码专区| 黄色日韩网站| 亚洲综合导航| 一区二区冒白浆视频| 久久久精品国产一区二区三区 | 亚洲欧美卡通另类91av| 一区免费视频| 亚洲欧美日本日韩| 亚洲少妇最新在线视频| 久久久精品性| 亚洲欧美区自拍先锋| 欧美精彩视频一区二区三区| 久久久亚洲欧洲日产国码αv| 欧美日韩精品高清| 欧美激情 亚洲a∨综合| 国产一区二区av| 先锋亚洲精品| 欧美一级视频精品观看| 欧美特黄一区| 一区二区免费看| 一区二区三区**美女毛片| 欧美成人精品一区| 美腿丝袜亚洲色图| 影音先锋另类| 久久久天天操| 免费观看不卡av| 伊人久久大香线| 久久久久久久网| 久久中文字幕一区| 精品成人免费| 久久―日本道色综合久久| 久久久蜜桃一区二区人| 狠狠色丁香婷婷综合影院| 欧美一级午夜免费电影| 久久久精品日韩欧美| 国产一区二区剧情av在线| 性欧美超级视频| 美女诱惑一区| 亚洲人成精品久久久久| 欧美精品一区二区三区久久久竹菊 | 欧美aaa级| 最新中文字幕亚洲| 欧美国产精品日韩| 亚洲乱码国产乱码精品精可以看| 99精品久久久| 国产精品视频福利| 午夜影视日本亚洲欧洲精品| 久久精品夜色噜噜亚洲a∨| 黄色日韩网站| 欧美激情视频在线免费观看 欧美视频免费一 | 国产午夜精品理论片a级大结局| 欧美一区二区三区电影在线观看| 久久婷婷人人澡人人喊人人爽| 怡红院av一区二区三区| 欧美国产视频在线| 中文日韩电影网站| 久久久久久久综合| 91久久夜色精品国产九色| 欧美日韩精品在线观看| 亚洲欧美综合v| 欧美成人中文| 亚洲自拍偷拍网址| 樱桃国产成人精品视频| 欧美精品999| 欧美一区二区三区日韩视频| 欧美jizzhd精品欧美喷水| 日韩网站在线观看| 国产日韩欧美一区在线 | 久久综合久久综合这里只有精品| 91久久精品美女| 欧美一级淫片aaaaaaa视频| 在线观看91久久久久久| 欧美亚洲成人精品| 免费成人小视频| 亚洲一区二区三区视频播放| 久久伊人亚洲| 午夜一级久久| 99xxxx成人网| 18成人免费观看视频| 国产精品美女久久久久av超清| 久久综合亚州| 欧美一区二区私人影院日本| 日韩视频免费观看高清完整版| 久久一区视频| 久久国产精品久久国产精品| 亚洲精品少妇| 一区二区在线视频| 国产欧美日韩在线| 欧美色图天堂网| 欧美激情在线播放| 久久亚洲私人国产精品va媚药| 亚洲自拍偷拍麻豆| 一区二区三区欧美在线| 91久久综合| 最新热久久免费视频| 欧美成人资源网| 免费成人网www| 久色成人在线| 久久在线视频在线| 久久精品亚洲一区二区| 午夜精品久久久久久久99热浪潮 | 国产一区二区三区高清在线观看| 欧美特黄一级| 欧美性大战久久久久久久蜜臀| 欧美日韩ab片| 欧美日韩一区在线| 欧美日韩精品二区| 欧美日韩视频在线| 欧美日韩另类在线| 欧美日韩视频一区二区三区| 欧美喷水视频| 欧美日韩一区二区三区在线视频| 欧美激情日韩| 欧美日韩在线一区二区三区| 欧美日韩成人在线播放| 欧美日本国产在线| 欧美午夜电影在线| 国产精品资源在线观看| 国产精自产拍久久久久久| 国产欧美日韩一区| 国产一区观看| 亚洲大片免费看| 亚洲精品一区二区三区婷婷月| 日韩视频一区二区| 亚洲视频网在线直播| 亚洲在线视频一区| 久久久久成人精品| 欧美成人在线网站| 亚洲精品一区二区三区在线观看| 夜夜嗨av一区二区三区网页| 亚洲影院高清在线| 久久久精品一区二区三区| 欧美fxxxxxx另类| 欧美视频一区二区三区…| 国产精品入口日韩视频大尺度| 国产日韩av在线播放| 在线观看中文字幕亚洲| 9l国产精品久久久久麻豆| 午夜精品区一区二区三| 女主播福利一区| 日韩一区二区精品视频| 性做久久久久久免费观看欧美| 米奇777超碰欧美日韩亚洲| 欧美性猛交99久久久久99按摩| 黄色一区二区在线| 9人人澡人人爽人人精品| 欧美一区二区三区另类| 欧美韩国日本一区| 亚洲女女女同性video| 欧美成人自拍| 国产精品午夜av在线| 亚洲国产高清一区| 欧美一级在线播放| 亚洲国产日日夜夜| 亚洲一区国产| 欧美日韩国产999| 一区视频在线播放| 羞羞色国产精品| 亚洲精品中文字幕在线| 久久网站热最新地址| 国产精品入口66mio| 99国产精品视频免费观看| 久久噜噜噜精品国产亚洲综合| 99精品99久久久久久宅男| 久久午夜精品| 国产综合第一页|