Fixing a copy/paste error in my previous checkin

This commit is contained in:
Deven Desai
2018-04-27 12:59:51 +00:00
parent 4be4cf644f
commit 76a7d7e374
+3 -8
View File
@@ -71,14 +71,9 @@ void check_lgamma_double() {
datatype_t *outputGPU = nullptr; hipMalloc((void**)&outputGPU, memsize); datatype_t *outputGPU = nullptr; hipMalloc((void**)&outputGPU, memsize);
// populate input // populate input
inputCPU[0] = -3.5; for (int i=0; i<NUM_INPUTS; i++) {
inputCPU[0] = -2.5; inputCPU[i] = -3.5 + i;
inputCPU[0] = -1.5; }
inputCPU[0] = -0.5;
inputCPU[0] = 0.5;
inputCPU[0] = 1.5;
inputCPU[0] = 2.5;
inputCPU[0] = 3.5;
// copy inputs to device // copy inputs to device
hipMemcpy(inputGPU, inputCPU, memsize, hipMemcpyHostToDevice); hipMemcpy(inputGPU, inputCPU, memsize, hipMemcpyHostToDevice);