Skip to content

Instantly share code, notes, and snippets.

@arpu
Created April 9, 2016 17:41
Show Gist options
  • Save arpu/33a26cc3bbb235bef3d2f30c06d10f52 to your computer and use it in GitHub Desktop.
Save arpu/33a26cc3bbb235bef3d2f30c06d10f52 to your computer and use it in GitHub Desktop.
From 25665ef8d59200239a27d7aa8aae6381c48811c1 Mon Sep 17 00:00:00 2001
From: arpu <freen.mail@yandex.com>
Date: Sat, 9 Apr 2016 19:38:29 +0200
Subject: [PATCH] linux compile fix
---
src/oclDCT8x8.cpp | 4 ++--
src/stdafx.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/oclDCT8x8.cpp b/src/oclDCT8x8.cpp
index bcbb769..cf82310 100644
--- a/src/oclDCT8x8.cpp
+++ b/src/oclDCT8x8.cpp
@@ -1,5 +1,5 @@
#include "stdafx.h"
-#include <cl\opencl.h>
+#include <CL/opencl.h>
#include "macro.h"
#include "idct.h"
@@ -58,7 +58,7 @@ int Initialize_OpenCL_IDCT()
clGetDeviceInfo(did, CL_DEVICE_NAME, sizeof(dname), dname, NULL);
printf("Device #%u: Name: %s\n", j+1, dname);
- if (strstr(dname, "Quadro") || strstr(dname, "Tesla") || strstr(dname, "Geforce") || strstr(dname, "FirePro") || strstr(dname, "FireStream") || strstr(dname, "Capeverde"))
+ if (strstr(dname, "Quadro") || strstr(dname, "Tesla") || strstr(dname, "GeForce") || strstr(dname, "FirePro") || strstr(dname, "FireStream") || strstr(dname, "Capeverde"))
{
// choose high-performace gpu automatically
sel_device=did;
diff --git a/src/stdafx.h b/src/stdafx.h
index 3fa7d10..d2393d3 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -12,7 +12,6 @@
#endif
#include <stdio.h>
-#include <tchar.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
--
2.5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment