Skip to content

Commit

Permalink
CI setting cuda arch to all-major, because there migth be no 'native'…
Browse files Browse the repository at this point in the history
… on ci machine
  • Loading branch information
ingowald committed Jan 7, 2025
1 parent 8411a16 commit 920674e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Configure cmake
id: configure
run: cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }}
run: cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCMAKE_CUDA_ARCHITECTURES=all-native

- name: Configure Error Processing
if: ${{ failure() && steps.configure.outcome == 'failure' }}
Expand Down
23 changes: 14 additions & 9 deletions measure.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
#!/bin/bash
# script that measures fcp and knn perf for paper

echo "results:" > fcp-and-knn-results.txt
for method in cct cct-xd spatial-cct spatial-stackBased stackBased stackBased-xd stackFree stackFree-xd ; do
echo "results for method ${method}" | tee fcp-and-knn-results-${method}.txt
done

for f in 1000 10000 100000 1000000 10000000 100000000 1000000000; do
echo "##############" >> fcp-and-knn-results.txt
echo "### running for num data points = $f" >> fcp-and-knn-results.txt
echo "*** fcp, unlimited query" >> fcp-and-knn-results.txt
./cukd_test_float4-fcp -nr 100 $f | grep queries >> fcp-and-knn-results.txt
echo "*** knn, unlimited query" >> fcp-and-knn-results.txt
./cukd_test_float4-knn -nr 100 $f | grep queries >> fcp-and-knn-results.txt
echo "*** knn, max-range 0.01 query" >> fcp-and-knn-results.txt
./cukd_test_float4-knn -nr 100 $f -r 0.01 | grep queries >> fcp-and-knn-results.txt
for method in cct cct-xd spatial-cct spatial-stackBased stackBased stackBased-xd stackFree stackFree-xd ; do
echo "##############" | tee -a fcp-and-knn-results-${method}.txt
echo "### running for num data points = $f" | tee -a fcp-and-knn-results-${method}.txt
echo "*** fcp, unlimited query" | tee -a fcp-and-knn-results.txt
./cukd_float4-fcp-${method} -nr 100 $f | grep queries | tee -a fcp-and-knn-results-${method}.txt
echo "*** knn, unlimited query" | tee -a fcp-and-knn-results.txt
./cukd_float4-knn-${method} -nr 100 $f | grep queries | tee -a fcp-and-knn-results-${method}.txt
echo "*** knn, max-range 0.01 query" | tee -a fcp-and-knn-results.txt
./cukd_float4-knn-${method} -nr 100 $f -r 0.01 | grep queries | tee -a fcp-and-knn-results-${method}.txt
done
done

0 comments on commit 920674e

Please sign in to comment.