diff --git a/deps/glm/detail/func_exponential.inl b/deps/glm/detail/func_exponential.inl index f8bd5093cd..830256fc15 100644 --- a/deps/glm/detail/func_exponential.inl +++ b/deps/glm/detail/func_exponential.inl @@ -197,22 +197,12 @@ namespace detail // sqrt GLM_FUNC_QUALIFIER float sqrt(float x) { -# ifdef __CUDACC__ // Wordaround for a CUDA compiler bug up to CUDA6 - detail::tvec1 tmp(detail::compute_sqrt::call(x)); - return tmp.x; -# else - return detail::compute_sqrt::call(x).x; -# endif + return detail::compute_sqrt::call(x).x; } GLM_FUNC_QUALIFIER double sqrt(double x) { -# ifdef __CUDACC__ // Wordaround for a CUDA compiler bug up to CUDA6 - detail::tvec1 tmp(detail::compute_sqrt::call(x)); - return tmp.x; -# else - return detail::compute_sqrt::call(x).x; -# endif + return detail::compute_sqrt::call(x).x; } template class vecType> diff --git a/deps/glm/detail/func_geometric.inl b/deps/glm/detail/func_geometric.inl index 9542ab8a17..5cd39f3d89 100644 --- a/deps/glm/detail/func_geometric.inl +++ b/deps/glm/detail/func_geometric.inl @@ -43,12 +43,7 @@ namespace detail { GLM_FUNC_QUALIFIER static T call(detail::tvec1 const & x, detail::tvec1 const & y) { -# ifdef __CUDACC__ // Wordaround for a CUDA compiler bug up to CUDA6 - detail::tvec1 tmp(x * y); - return tmp.x; -# else - return detail::tvec1(x * y).x; -# endif + return detail::tvec1(x * y).x; } }; diff --git a/deps/glm/detail/setup.hpp b/deps/glm/detail/setup.hpp index 2c2d1a473c..610b3ddb93 100644 --- a/deps/glm/detail/setup.hpp +++ b/deps/glm/detail/setup.hpp @@ -210,17 +210,6 @@ # define GLM_COMPILER GLM_COMPILER_INTEL # endif -// CUDA -#elif defined(__CUDACC__) -# if !defined(CUDA_VERSION) && !defined(GLM_FORCE_CUDA) -# include // make sure version is defined since nvcc does not define it itself! -# endif -# if CUDA_VERSION < 3000 -# error "GLM requires CUDA 3.0 or higher" -# else -# define GLM_COMPILER GLM_COMPILER_CUDA -# endif - // Visual C++ #elif defined(_MSC_VER) # if _MSC_VER < 1400 diff --git a/deps/glm/gtx/fast_square_root.inl b/deps/glm/gtx/fast_square_root.inl index 9b8e02db1d..dd9734a6ee 100644 --- a/deps/glm/gtx/fast_square_root.inl +++ b/deps/glm/gtx/fast_square_root.inl @@ -27,23 +27,13 @@ namespace glm template <> GLM_FUNC_QUALIFIER float fastInverseSqrt(float const & x) { -# ifdef __CUDACC__ // Wordaround for a CUDA compiler bug up to CUDA6 - detail::tvec1 tmp(detail::compute_inversesqrt::call(detail::tvec1(x))); - return tmp.x; -# else - return detail::compute_inversesqrt::call(detail::tvec1(x)).x; -# endif + return detail::compute_inversesqrt::call(detail::tvec1(x)).x; } template <> GLM_FUNC_QUALIFIER double fastInverseSqrt(double const & x) { -# ifdef __CUDACC__ // Wordaround for a CUDA compiler bug up to CUDA6 - detail::tvec1 tmp(detail::compute_inversesqrt::call(detail::tvec1(x))); - return tmp.x; -# else - return detail::compute_inversesqrt::call(detail::tvec1(x)).x; -# endif + return detail::compute_inversesqrt::call(detail::tvec1(x)).x; } template