Commit 3bd057f9c7932b82e39ca1128771e71fff698d6b

Authored by Hu Chunming
1 parent bf1945b8

添加demo案例

.vscode/launch.json
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 "version": "0.2.0", 2 "version": "0.2.0",
3 "configurations": [ 3 "configurations": [
4 { 4 {
5 - "name": "dvpp", 5 + "name": "vpt_proj",
6 "type": "cppdbg", 6 "type": "cppdbg",
7 "request": "launch", 7 "request": "launch",
8 "program": "${workspaceFolder}/bin/vpt_proj", 8 "program": "${workspaceFolder}/bin/vpt_proj",
src/demo/demo.cpp
@@ -1242,7 +1242,7 @@ void test_gpu(int gpuID){ @@ -1242,7 +1242,7 @@ void test_gpu(int gpuID){
1242 1242
1243 // } 1243 // }
1244 1244
1245 - createTask(handle, algor_vec2, 0, false); 1245 + // createTask(handle, algor_vec2, 0, false);
1246 // createTask(handle, algor_vec2, 2, false); 1246 // createTask(handle, algor_vec2, 2, false);
1247 // createTask(handle, algor_vec2, 0, false); 1247 // createTask(handle, algor_vec2, 0, false);
1248 // createTask(handle, algor_vec2, 2, false); 1248 // createTask(handle, algor_vec2, 2, false);
@@ -1261,7 +1261,7 @@ void test_gpu(int gpuID){ @@ -1261,7 +1261,7 @@ void test_gpu(int gpuID){
1261 while (true) 1261 while (true)
1262 { 1262 {
1263 int task_count = count_running_task(handle); 1263 int task_count = count_running_task(handle);
1264 - if (task_count < 7) 1264 + if (task_count < 13)
1265 { 1265 {
1266 // if (task_index > 7) 1266 // if (task_index > 7)
1267 // { 1267 // {
@@ -1269,9 +1269,7 @@ void test_gpu(int gpuID){ @@ -1269,9 +1269,7 @@ void test_gpu(int gpuID){
1269 // break; 1269 // break;
1270 // } 1270 // }
1271 1271
1272 - createTask(handle, algor_vec2, 28, false);  
1273 - task_index++;  
1274 - createTask(handle, algor_vec2, 29, false); 1272 + createTask(handle, algor_vec2, 26, false);
1275 task_index++; 1273 task_index++;
1276 } 1274 }
1277 1275
@@ -1453,12 +1451,12 @@ int main(int argc, char *argv[]) { @@ -1453,12 +1451,12 @@ int main(int argc, char *argv[]) {
1453 // int repeat_num = atoi(argv[3]); 1451 // int repeat_num = atoi(argv[3]);
1454 // int gpuID = atoi(argv[4]); 1452 // int gpuID = atoi(argv[4]);
1455 1453
1456 - // test_gpu(0); 1454 + test_gpu(0);
1457 // test_gpu(1); 1455 // test_gpu(1);
1458 // test_gpu(2); 1456 // test_gpu(2);
1459 // test_gpu(3); 1457 // test_gpu(3);
1460 1458
1461 - test_dvpp28181(0); 1459 + // test_dvpp28181(0);
1462 1460
1463 printf("Done.\n"); 1461 printf("Done.\n");
1464 1462