mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-23 13:31:31 -05:00
Add nvidia config to build nvidia-compatible binary on osx/linux
Also added config to build a cpu-native binary to take advantage of additional CPU features
This commit is contained in:
parent
6e929a7aaf
commit
52f6415085
@ -23,6 +23,17 @@ macx {
|
||||
QMAKE_LFLAGS_RELEASE += -s
|
||||
}
|
||||
|
||||
nvidia {
|
||||
QMAKE_CXXFLAGS += -DNVIDIA
|
||||
}
|
||||
|
||||
native {
|
||||
QMAKE_CXXFLAGS += -march=native
|
||||
} else {
|
||||
QMAKE_CXXFLAGS += -march=k8
|
||||
}
|
||||
|
||||
|
||||
DESTDIR = $$(HOME)/Dev/fractorium/Bin
|
||||
|
||||
LIBS += -L/usr/lib -ljpeg
|
||||
|
@ -21,6 +21,12 @@
|
||||
#endif
|
||||
|
||||
#include <utility>
|
||||
|
||||
#ifdef NVIDIA
|
||||
#undef CL_VERSION_1_2
|
||||
#define CL_VERSION_1_1
|
||||
#endif
|
||||
|
||||
#include <CL/cl.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
|
Loading…
Reference in New Issue
Block a user