mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 12:20:24 +01:00
On CUDA versions previous to 8.0, only __shared__ variables could be declared as static in the device code.
This commit is contained in:
parent
cd56a638da
commit
1b6453bec5
|
|
@ -66,7 +66,13 @@ class ProjectiveGenerator {
|
||||||
projection;
|
projection;
|
||||||
|
|
||||||
// TODO(ringwalt): Add a fill value input.
|
// TODO(ringwalt): Add a fill value input.
|
||||||
|
#if (defined __CUDA_ARCH__) && (CUDART_VERSION < 8000)
|
||||||
|
// On CUDA versions previous to 8.0, only __shared__ variables
|
||||||
|
// could be declared as static in the device code.
|
||||||
|
const T fill_value = T(0);
|
||||||
|
#else
|
||||||
static const T fill_value = T(0);
|
static const T fill_value = T(0);
|
||||||
|
#endif
|
||||||
switch (interpolation_) {
|
switch (interpolation_) {
|
||||||
case INTERPOLATION_NEAREST:
|
case INTERPOLATION_NEAREST:
|
||||||
// Switch the order of x and y again for indexing into the image.
|
// Switch the order of x and y again for indexing into the image.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user