Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

cuptiFinalize not defined in cuda7.5

Open putcn opened this issue 8 years ago • 5 comments

I am trying to fix Paddle's manylinux1 build. It will build Paddle based on CUDA 7.5. And it failed on

[21:34:51][Step 1/4] In file included from /paddle/paddle/fluid/platform/dynload/cupti.cc:17:0:
[21:34:51][Step 1/4] /paddle/paddle/fluid/platform/dynload/cupti.h: In member function ‘CUptiResult paddle::platform::dynload::DynLoad__cuptiFinalize::operator()(Args ...)’:
[21:34:51][Step 1/4] /paddle/paddle/fluid/platform/dynload/cupti.h:44:35: error: ‘::cuptiFinalize’ has not been declared
[21:34:51][Step 1/4]        using cuptiFunc = decltype(&::__name);                               \

Looks cuptiFinalize and related APIs are not available in cuda7.5, which fails the nightly build of cuda7.5 cudnn5.

@panyx0718 cuptiFinalize is used in profiling.

So, are we going to ditch the support for cuda 7.5?

Full Log: http://172.19.32.197:8111/viewLog.html?tab=buildLog&logTab=tree&filter=debug&expand=all&buildId=35136&_focus=1374

putcn avatar May 07 '18 22:05 putcn

There are 2 solutions, we update the cupti API call to support cuda 7.5, or we can disable timeline support for cuda7.5. Looking into it

panyx0718 avatar May 08 '18 01:05 panyx0718

I am using cuda8.0 and get the same error. Is there any update about this problem?

kuke avatar May 08 '18 06:05 kuke

Is there something broken recently? cuda8 used to work.

panyx0718 avatar May 08 '18 07:05 panyx0718

I have a PR that can fix the issue: https://github.com/PaddlePaddle/Paddle/pull/10500

But cuda7.5 gives me another not quite related error after this one is fixed:

In file included from /paddle/dev/my/Paddle2/paddle/fluid/operators/math/blas.h:151:0,
                 from /paddle/dev/my/Paddle2/paddle/fluid/operators/math/blas.cc:15:
/paddle/dev/my/Paddle2/paddle/fluid/operators/math/blas_impl.cu.h: In member function ‘void paddle::operators::math::Blas<DeviceContext>::GEMM(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, T, const T*, const T*, T, T*) const [with T = paddle::platform::float16; DeviceContext = paddle::platform::CUDADeviceContext]’:
/paddle/dev/my/Paddle2/paddle/fluid/operators/math/blas_impl.cu.h:175:45: error: ‘h_alpha’ was not declared in this scope
                                   N, M, K, &h_alpha, h_B, ldb, h_A, lda,
                                             ^
/paddle/dev/my/Paddle2/paddle/fluid/operators/math/blas_impl.cu.h:175:54: error: ‘h_B’ was not declared in this scope
                                   N, M, K, &h_alpha, h_B, ldb, h_A, lda,
                                                      ^
/paddle/dev/my/Paddle2/paddle/fluid/operators/math/blas_impl.cu.h:175:64: error: ‘h_A’ was not declared in this scope
                                   N, M, K, &h_alpha, h_B, ldb, h_A, lda,
                                                                ^
/paddle/dev/my/Paddle2/paddle/fluid/operators/math/blas_impl.cu.h:176:36: error: ‘h_beta’ was not declared in this scope
                                   &h_beta, h_C, N);
                                    ^
/paddle/dev/my/Paddle2/paddle/fluid/operators/math/blas_impl.cu.h:176:44: error: ‘h_C’ was not declared in this scope
                                   &h_beta, h_C, N);

panyx0718 avatar May 08 '18 13:05 panyx0718

closing this as we have decided to stop supporting cuda7.5

putcn avatar May 10 '18 04:05 putcn