mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 13:10:04 -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
|
||||
}
|
||||
|
||||
nvidia {
|
||||
QMAKE_CXXFLAGS += -DNVIDIA
|
||||
}
|
||||
# The NVIDIA def was used to force OpenCL 1.1.
|
||||
# The Linux drivers support OpenCL 1.2 now.
|
||||
|
||||
#nvidia {
|
||||
# QMAKE_CXXFLAGS += -DNVIDIA
|
||||
#}
|
||||
|
||||
native {
|
||||
QMAKE_CXXFLAGS += -march=native
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
// OpenCL 1.2 is supported in the Linux Nvidia drivers now.
|
||||
/*
|
||||
#ifdef NVIDIA
|
||||
#ifdef CL_VERSION_1_2
|
||||
#undef CL_VERSION_1_2
|
||||
@ -35,6 +37,7 @@
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
*/
|
||||
|
||||
#include <CL/cl.hpp>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user