Fixing a copy/paste error in my previous checkin

Этот коммит содержится в:
Deven Desai
2018-04-27 12:59:51 +00:00
родитель 76e808304c
Коммит 30f0c19cf1
+3 -8
Просмотреть файл
@@ -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);