Skip to content

Commit

Permalink
fix compile error on jetson (#39441)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiweibo authored Feb 10, 2022
1 parent 52d6b30 commit 8b58862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/pten/backends/gpu/gpu_launch_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static inline int RoundToPowerOfTwo(int n) {
#ifdef WITH_NV_JETSON
// The number of threads cannot be assigned 1024 in some cases when the device
// is nano or tx2 .
inline void ChangeThreadNum(const pten::CUDAContext& context,
inline void ChangeThreadNum(const pten::GPUContext& context,
int* num_thread,
int alternative_num_thread = 512) {
if (context.GetComputeCapability() == 53 ||
Expand Down

0 comments on commit 8b58862

Please sign in to comment.