Skip to content

Commit

Permalink
Update tensor_gpu-inl.cuh
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Nov 21, 2014
1 parent ef1f300 commit c87fa59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mshadow/cuda/tensor_gpu-inl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@

namespace mshadow{
namespace cuda{
#ifndef __CUDA_ARCH__
#warning "__CUDA_ARCH__ is not defined, I will assume compiling with CUDA verion greater than 2.0"
#endif
/* load unit for memory access */
#if __CUDA_ARCH__>=200
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 200
const int kMemUnitBits = 5;
const int kMaxThreadsPerBlock = 1024;
#else
Expand Down

0 comments on commit c87fa59

Please sign in to comment.