Skip to content

Fix build with modern cmake/clang toolchain#579

Open
itsme-ranger wants to merge 1 commit into
tensor-compiler:masterfrom
itsme-ranger:fix/build-modern-toolchain
Open

Fix build with modern cmake/clang toolchain#579
itsme-ranger wants to merge 1 commit into
tensor-compiler:masterfrom
itsme-ranger:fix/build-modern-toolchain

Conversation

@itsme-ranger

Copy link
Copy Markdown

Addresses the issues described in #572 with a more conservative set of changes.

Compiler warnings fixed:

  • src/lower/lowerer_impl_imperative.cpp: remove unused loop variable i and ++i
  • test/tests-tensor_types.cpp: fix narrowing-conversion warning (1.0/2.0static_cast<TypeParam>(1/2))
  • test/tests-scheduling.cpp: remove unused countCorrect/countIncorrect variables

CMake modernization:

  • Bump minimum cmake version from 3.4.0 to 3.10
  • Add CUDAToolkit detection with fallback to legacy find_package(CUDA) for backwards compatibility
  • Use CUDA::cudart imported target when available; fall back to ${CUDA_LIBRARIES} otherwise
  • Bump apps/tensor_times_vector minimum from 2.8.12 to 3.10

- Bump cmake minimum to 3.10; add CUDAToolkit detection with fallback
- Use CUDA::cudart target when CUDAToolkit is available
- Remove unused loop variable in lowerer_impl_imperative.cpp
- Fix narrowing-conversion warning in tests-tensor_types.cpp
- Remove unused countCorrect/countIncorrect in tests-scheduling.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant