main.cpp
来自「用于GPU通用计算的编程语言BrookGPU 0.4」· C++ 代码 · 共 32 行
CPP
32 行
// fractal.br// tests kernel splitting of an iterative construct#include <stdio.h>void testFractal( int, int, int* );void testParticleCloth( int, int, int* );void testMatmult( int, int, int* );#include <windows.h>#include <mmsystem.h>#pragma comment(lib,"winmm")int getTime(){
return (int)timeGetTime();
}void main( int argc, char** argv ){ int time; int size = atoi( argv[1] ); int count = atoi( argv[2] ); testMatmult( size, count, &time );// testFractal( size, count, &time );// testParticleCloth( size, count, &time ); printf( "test size=%d, count=%d, time=%d\n", size, count, time );}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?