Commit 4f5b240a91a749bc6fe9a27e059e034c404db054

Authored by Pavel Govyadinov
1 parent 0bff785b

minor change to image.h, uncommening the line that uses cimg (line 4). This is n…

…ecessary for the class to properly read .jpg files
Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
cuda/cost.h
... ... @@ -17,7 +17,7 @@ texture<uchar, cudaTextureType2D, cudaReadModeElementType> texIn;
17 17 float *result;
18 18 float* v_dif;
19 19 cudaArray* srcArray;
20   -bool testing = FALSE;
  20 +bool testing = false;
21 21  
22 22 inline void checkCUDAerrors(const char *msg)
23 23 {
... ... @@ -39,7 +39,7 @@ float get_sum(float *diff)
39 39 ret = cublasSetVector(20*10, sizeof(*diff), diff, 1, v_dif, 1);
40 40 if(!testing){
41 41 stim::gpu2image<float>(v_dif, "sample0.bmp", 20,10,0,1);
42   - testing = TRUE;
  42 + testing = true;
43 43 } //float* out = (float*) malloc(sizeof(float));
44 44 float out;
45 45 ret = cublasSasum(handle, 20*10, v_dif, 1, &out);
... ...
image/image.h
1 1 #ifndef STIM_IMAGE_H
2 2 #define STIM_IMAGE_H
3   -//#define cimg_use_jpeg //necessary for JPG files
  3 +#define cimg_use_jpeg //necessary for JPG files
4 4 #include "CImg.h"
5 5  
6 6 #include <iostream>
... ...