fixing resources releasing

[ROCm/rocprofiler commit: 9a9418ad16]
This commit is contained in:
Evgeny
2018-01-22 17:02:46 -06:00
orang tua 4fb86567a1
melakukan f92f655139
14 mengubah file dengan 145 tambahan dan 323 penghapusan
+6 -2
Melihat File
@@ -7,8 +7,12 @@
#include "simple_convolution/simple_convolution.h"
int main(int argc, char** argv) {
const char* kiter_s = getenv("ROCP_KITER");
const char* diter_s = getenv("ROCP_DITER");
const int kiter = (kiter_s != NULL) ? atol(kiter_s) : 1;
const int diter = (diter_s != NULL) ? atol(diter_s) : 1;
TestHsa::HsaInstantiate();
for (int i = 0; i < 3; ++i) RunKernel<SimpleConvolution, TestAql>(argc, argv);
TestHsa::HsaShutdown();
for (int i = 0; i < kiter; ++i) RunKernel<SimpleConvolution, TestAql>(argc, argv, diter);
//TestHsa::HsaShutdown();
return 0;
}