mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-01 18:40:12 -05:00
OpenCL 1.2 is supported in the Linux Nvidia drivers now
This commit is contained in:
parent
994c05ba68
commit
7318bff32c
@ -51,9 +51,12 @@ macx {
|
|||||||
QMAKE_LFLAGS_RELEASE += -s
|
QMAKE_LFLAGS_RELEASE += -s
|
||||||
}
|
}
|
||||||
|
|
||||||
nvidia {
|
# The NVIDIA def was used to force OpenCL 1.1.
|
||||||
QMAKE_CXXFLAGS += -DNVIDIA
|
# The Linux drivers support OpenCL 1.2 now.
|
||||||
}
|
|
||||||
|
#nvidia {
|
||||||
|
# QMAKE_CXXFLAGS += -DNVIDIA
|
||||||
|
#}
|
||||||
|
|
||||||
native {
|
native {
|
||||||
QMAKE_CXXFLAGS += -march=native
|
QMAKE_CXXFLAGS += -march=native
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
// OpenCL 1.2 is supported in the Linux Nvidia drivers now.
|
||||||
|
/*
|
||||||
#ifdef NVIDIA
|
#ifdef NVIDIA
|
||||||
#ifdef CL_VERSION_1_2
|
#ifdef CL_VERSION_1_2
|
||||||
#undef CL_VERSION_1_2
|
#undef CL_VERSION_1_2
|
||||||
@ -35,6 +37,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
#include <CL/cl.hpp>
|
#include <CL/cl.hpp>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user