Skip to content

Commit f97bef1

Browse files
authored
Use find_package(Threads) instead of hardcoding (#2813)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 8473cab commit f97bef1

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/actions/setup-triton/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
default: false
99
command:
1010
description: Command to execute
11-
default: DEBUG=1 pip install --no-build-isolation '.[build,tests,tutorials]'
11+
default: DEBUG=1 pip install -v --no-build-isolation '.[build,tests,tutorials]'
1212
runs:
1313
using: "composite"
1414
steps:

.github/workflows/build-test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
cd python
4949
pip install -U wheel pybind11 certifi cython cmake
5050
python -m certifi
51-
pip install --no-build-isolation '.[build]'
51+
pip install -v --no-build-isolation '.[build]'
5252
5353
- name: Clean
5454
if: ${{ always() }}

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,8 @@ if(NOT TRITON_BUILD_PYTHON_MODULE)
346346
endforeach()
347347
add_subdirectory(third_party/proton/dialect)
348348
endif()
349-
if(WIN32)
350-
option(CMAKE_USE_WIN32_THREADS_INIT "using WIN32 threads" ON)
351-
option(gtest_disable_pthreads "Disable uses of pthreads in gtest." ON)
352-
endif()
349+
350+
find_package(Threads REQUIRED)
353351

354352
add_subdirectory(third_party/f2reduce)
355353
add_subdirectory(bin)

0 commit comments

Comments
 (0)