Skip to content

Commit

Permalink
test opencl-find-deal; fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Dec 31, 2024
1 parent 29b22e5 commit 8d201c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fc-solve/scripts/opencl-test.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ use Test::More tests => 7;

use Docker::CLI::Wrapper::Container v0.0.4 ();
my $lib = "libopencl_find_deal_idx.so";
my $board_gen_dir = "../../source/board_gen";
my $source_dir = "../../source";
my $board_gen_dir = "$source_dir/board_gen";
my $include_dir = "$source_dir/include";

my $gen_ocl_py_prog =
"$board_gen_dir/find-freecell-deal-index-generate-opencl-code.py";
Expand Down Expand Up @@ -39,7 +41,7 @@ qq#python3 "$gen_ocl_py_prog" --ms <(pi-make-microsoft-freecell-board -t "24")#,
cmd => [
"bash",
"-c",
qq#\${CC:-clang} -shared -fPIC -O3 -march=native -flto -o "$lib" -I ~/Download/unpack/to-del/www.dmi.unict.it/bilotta/gpgpu/svolti/aa201920/opencl/ -I "$board_gen_dir" \${WCFLAGS:--Weverything} "opencl_find_deal_idx.c" -lOpenCL#
qq#\${CC:-clang} -shared -fPIC -O3 -march=native -flto -o "$lib" -I ~/Download/unpack/to-del/www.dmi.unict.it/bilotta/gpgpu/svolti/aa201920/opencl/ -I "$board_gen_dir" -I "$include_dir" \${WCFLAGS:--Weverything} "opencl_find_deal_idx.c" -lOpenCL#
]
}
);
Expand Down

0 comments on commit 8d201c4

Please sign in to comment.