Skip to content

Commit 8ce371f

Browse files
committed
fix ci
1 parent 2cb1412 commit 8ce371f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/test-k2-as-third-party-lib-cuda-ubuntu.yml

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
105105
- name: Install GCC 7
106106
run: |
107+
sudo echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal main universe" >> /etc/apt/sources.list
107108
sudo apt-get install -y gcc-7 g++-7
108109
echo "CC=/usr/bin/gcc-7" >> $GITHUB_ENV
109110
echo "CXX=/usr/bin/g++-7" >> $GITHUB_ENV

k2/torch/csrc/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ target_link_libraries(k2_torch_api PUBLIC k2_torch)
7575

7676
if(K2_ENABLE_TESTS)
7777
add_executable(torch_api_test torch_api_test.cc)
78-
target_link_libraries(torch_api_test PRIVATE k2_torch_api gtest gtest_main)
78+
target_link_libraries(torch_api_test k2_torch_api gtest gtest_main)
7979

8080
# NOTE: We set the working directory here so that
8181
# it works also on windows. The reason is that

scripts/github_actions/install_cuda.sh

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ case "$cuda" in
4949
11.7)
5050
url=https://developer.download.nvidia.com/compute/cuda/11.7.1/local_installers/cuda_11.7.1_515.65.01_linux.run
5151
;;
52+
11.8)
53+
url=https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
54+
;;
5255
*)
5356
echo "Unknown cuda version: $cuda"
5457
exit 1

0 commit comments

Comments
 (0)