You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "WillAyd (via GitHub)" <gi...@apache.org> on 2024/06/10 21:09:17 UTC

[PR] refactor: Consolidate device extension into main project [arrow-nanoarrow]

WillAyd opened a new pull request, #517:
URL: https://github.com/apache/arrow-nanoarrow/pull/517

   (no comment)


-- 
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: github-unsubscribe@arrow.apache.org

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


Re: [PR] refactor: Consolidate device extension into main project [arrow-nanoarrow]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot merged PR #517:
URL: https://github.com/apache/arrow-nanoarrow/pull/517


-- 
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: github-unsubscribe@arrow.apache.org

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


Re: [PR] refactor: Consolidate device extension into main project [arrow-nanoarrow]

Posted by "WillAyd (via GitHub)" <gi...@apache.org>.
WillAyd commented on code in PR #517:
URL: https://github.com/apache/arrow-nanoarrow/pull/517#discussion_r1633837664


##########
docs/source/conf.py:
##########
@@ -66,8 +66,6 @@ def get_version():
 # Breathe configuration
 breathe_projects = {

Review Comment:
   Not super sure on this change - what should I be looking for with the documentation as part of this?



-- 
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: github-unsubscribe@arrow.apache.org

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


Re: [PR] refactor: Consolidate device extension into main project [arrow-nanoarrow]

Posted by "WillAyd (via GitHub)" <gi...@apache.org>.
WillAyd commented on code in PR #517:
URL: https://github.com/apache/arrow-nanoarrow/pull/517#discussion_r1635142169


##########
CMakeLists.txt:
##########
@@ -73,7 +92,8 @@ endif()
 
 configure_file(src/nanoarrow/nanoarrow_config.h.in generated/nanoarrow_config.h)
 
-if(NANOARROW_IPC AND (NANOARROW_BUILD_TESTS OR NOT NANOARROW_BUNDLE))
+if((NANOARROW_DEVICE OR NANOARROW_IPC) AND (NANOARROW_BUILD_TESTS OR NOT NANOARROW_BUNDLE
+                                           ))

Review Comment:
   I actually think it was a mistake to include NANOARROW_DEVICE here - the nanoarrow_device target on main includes the flatcc headers as part of the build interface but I don't think actually requires it. Just removed that instead to keep this section untouched



-- 
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: github-unsubscribe@arrow.apache.org

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


Re: [PR] refactor: Consolidate device extension into main project [arrow-nanoarrow]

Posted by "WillAyd (via GitHub)" <gi...@apache.org>.
WillAyd commented on code in PR #517:
URL: https://github.com/apache/arrow-nanoarrow/pull/517#discussion_r1633832561


##########
CMakeLists.txt:
##########
@@ -493,6 +606,55 @@ if(NANOARROW_BUILD_TESTS)
     gtest_discover_tests(nanoarrow_ipc_files_test)
     gtest_discover_tests(nanoarrow_ipc_hpp_test)
   endif()
+
+  if(NANOARROW_DEVICE)
+    enable_testing()

Review Comment:
   There are a few things here that are duplicative of what happens in the IPC branch directly preceding it, but didn't try to solve that as part of this PR. Figured a copy/paste from the old structure into the new would be easiest to review



##########
CMakeLists.txt:
##########
@@ -16,7 +16,7 @@
 # under the License.
 
 message(STATUS "Building using CMake version: ${CMAKE_VERSION}")
-cmake_minimum_required(VERSION 3.14)
+cmake_minimum_required(VERSION 3.22)

Review Comment:
   The version bump is required to support the DEPENDS condition in the dependent option:
   
   https://cmake.org/cmake/help/v3.29/module/CMakeDependentOption.html
   
   Might be a creative way to work around this if 3.14 is a hard requirement



-- 
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: github-unsubscribe@arrow.apache.org

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


Re: [PR] refactor: Consolidate device extension into main project [arrow-nanoarrow]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on code in PR #517:
URL: https://github.com/apache/arrow-nanoarrow/pull/517#discussion_r1634849426


##########
CMakeLists.txt:
##########
@@ -73,7 +92,8 @@ endif()
 
 configure_file(src/nanoarrow/nanoarrow_config.h.in generated/nanoarrow_config.h)
 
-if(NANOARROW_IPC AND (NANOARROW_BUILD_TESTS OR NOT NANOARROW_BUNDLE))
+if((NANOARROW_DEVICE OR NANOARROW_IPC) AND (NANOARROW_BUILD_TESTS OR NOT NANOARROW_BUNDLE
+                                           ))

Review Comment:
   Maybe wrap the flatcc bit with `if(NANOARROW_IPC)` so that it doesn't get run if we're only building with `NANOARROW_DEVICE`?



##########
CMakeLists.txt:
##########
@@ -16,7 +16,7 @@
 # under the License.
 
 message(STATUS "Building using CMake version: ${CMAKE_VERSION}")
-cmake_minimum_required(VERSION 3.14)
+cmake_minimum_required(VERSION 3.22)

Review Comment:
   I believe 3.14 comes from centos7's `cmake3`. I think for now you can just ignore the option dependencies...I am doing an overhaul of the device code in the next few weeks and I'm not sure exactly what the final CMake options will be.



##########
docs/source/conf.py:
##########
@@ -66,8 +66,6 @@ def get_version():
 # Breathe configuration
 breathe_projects = {

Review Comment:
   The place where this shows up is: https://arrow.apache.org/nanoarrow/latest/reference/device.html
   
   ...and I think that a few lines of
   
   https://github.com/apache/arrow-nanoarrow/blob/ec1a6927283a33a97232047179b6abc77c374de3/docs/source/reference/device.rst#L24-L41
   
   and
   
   https://github.com/apache/arrow-nanoarrow/blob/main/docs/source/reference/ipc.rst?plain=1#L24-L33
   
   ...might need to be updated (the new project would just be `nanoarrow_c`).



##########
README.md:
##########
@@ -132,3 +132,53 @@ meson test nanoarrow:  # default test run
 meson test nanoarrow: --wrap valgrind  # run tests under valgrind
 meson test nanoarrow: --benchmark --verbose # run benchmarks
 ```
+
+# nanoarrow device option

Review Comment:
   This will need updating shortly, so I pasted it into https://github.com/apache/arrow-nanoarrow/issues/497#issuecomment-2160718697 and I think it might be better to leave it out for now (until the device behaviour has converged).



-- 
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: github-unsubscribe@arrow.apache.org

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