forked from unitaryfund/qrack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb75956
commit 82c115e
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ tags | |
CMakeCache.txt | ||
CMakeFiles/ | ||
Makefile | ||
*.cmake | ||
include/OpenCL/ | ||
_build/ | ||
_cuda_build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
set(FPPOW "5" CACHE STRING "Log2 of float bits, for use in pairs as complex amplitudes (must be at least 2, equivalent to half precision)") | ||
option(ENABLE_FIXED_POINT "Use fixed-point math instead of floating-point" OFF) | ||
|
||
if (FPPOW LESS 4) | ||
message(FATAL_ERROR "FPPOW must be at least 4, equivalent to \"half\" precision!") | ||
endif (FPPOW LESS 4) | ||
|
||
if (FPPOW GREATER 7) | ||
message(FATAL_ERROR "FPPOW must be no greater than 7, equivalent to 128-bit precision!") | ||
endif (FPPOW GREATER 7) | ||
|
||
if (FPPOW LESS 5) | ||
set(ENABLE_COMPLEX_X2 OFF) | ||
endif (FPPOW LESS 5) |