You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "kou (via GitHub)" <gi...@apache.org> on 2023/09/01 02:43:01 UTC

[GitHub] [arrow] kou opened a new issue, #37507: [GLib][GPU] Different cuda.h is included

kou opened a new issue, #37507:
URL: https://github.com/apache/arrow/issues/37507

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   https://github.com/apache/arrow/blob/main/c_glib/arrow-cuda-glib/cuda.h not CUDA's `cuda.h` is included for https://github.com/apache/arrow/blob/b6c0ea455d08a0de590a1e195af69676ca56457e/cpp/src/arrow/gpu/cuda_context.h#L24 .
   
   test-ubuntu-22.04-docs
   
   https://github.com/ursacomputing/crossbow/actions/runs/6034388088/job/16372666129#step:7:8241
   
   ```text
   FAILED: arrow-cuda-glib/libarrow-cuda-glib.so.1400.0.0.p/cuda.cpp.o 
   sccache c++ -Iarrow-cuda-glib/libarrow-cuda-glib.so.1400.0.0.p -Iarrow-cuda-glib -I../../arrow/c_glib/arrow-cuda-glib -I. -I../../arrow/c_glib -Iarrow-glib -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O0 -g -Wmissing-declarations -DARROW_NO_DEPRECATED_API -fPIC -MD -MQ arrow-cuda-glib/libarrow-cuda-glib.so.1400.0.0.p/cuda.cpp.o -MF arrow-cuda-glib/libarrow-cuda-glib.so.1400.0.0.p/cuda.cpp.o.d -o arrow-cuda-glib/libarrow-cuda-glib.so.1400.0.0.p/cuda.cpp.o -c ../../arrow/c_glib/arrow-cuda-glib/cuda.cpp
   In file included from /usr/local/include/arrow/gpu/cuda_api.h:21,
                    from ../../arrow/c_glib/arrow-cuda-glib/cuda.hpp:22,
                    from ../../arrow/c_glib/arrow-cuda-glib/cuda.cpp:29:
   /usr/local/include/arrow/gpu/cuda_context.h:155:26: error: 'CUstream' does not name a type; did you mean 'Stream'?
     155 |     [[nodiscard]] inline CUstream value() const noexcept {
         |                          ^~~~~~~~
         |                          Stream
   /usr/local/include/arrow/gpu/cuda_context.h:161:14: error: expected type-specifier before 'CUstream'
     161 |     operator CUstream() const noexcept { return value(); }
         |              ^~~~~~~~
   /usr/local/include/arrow/gpu/cuda_context.h:170:55: error: 'CUstream' has not been declared
     170 |     explicit Stream(std::shared_ptr<CudaContext> ctx, CUstream* st,
         |                                                       ^~~~~~~~
   /usr/local/include/arrow/gpu/cuda_context.h:200:19: error: 'CUevent' does not name a type
     200 |     [[nodiscard]] CUevent value() const {
         |                   ^~~~~~~
   /usr/local/include/arrow/gpu/cuda_context.h:206:14: error: expected type-specifier before 'CUevent'
     206 |     operator CUevent() const noexcept { return value(); }
         |              ^~~~~~~
   /usr/local/include/arrow/gpu/cuda_context.h:220:58: error: 'CUevent' has not been declared
     220 |     explicit SyncEvent(std::shared_ptr<CudaContext> ctx, CUevent* ev,
         |                                                          ^~~~~~~
   ```
   
   ### Component(s)
   
   GLib, GPU


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kou closed issue #37507: [GLib][GPU] Different cuda.h is included

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #37507: [GLib][GPU] Different cuda.h is included
URL: https://github.com/apache/arrow/issues/37507


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org