Skip to content

Commit 87ac7d9

Browse files
committed
OmpSs builds and env files
1 parent 36bd9a7 commit 87ac7d9

File tree

12 files changed

+21
-18
lines changed

12 files changed

+21
-18
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ OmpSs/example_print/vivado.jou
4141

4242
OmpSs/example_print/vivado.log
4343

44-
OmpSs/builds/
44+
OmpSs/builds/reverse_print/reverse_print_ait/
45+
46+
OmpSs/builds/dotproduct/dotproduct_ait/

OmpSs/apps/rosetta-spam-filter/src/spam_filter.cpp

+17-17
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ void print_task(int *epoch)
1717
printf("Epoch %d done\n", *epoch);
1818
}
1919

20-
#pragma oss task device(smp) in([1] f, [1] lower_bound, [1] upper_bound)
21-
void assert_task(float *f, float *lower_bound, float *upper_bound)
22-
{
23-
if (*f > *lower_bound && *f < *upper_bound)
24-
{
25-
printf("assertion passed\n");
26-
}
27-
else
28-
{
29-
printf("assertion failed\n");
30-
}
31-
}
20+
// #pragma oss task device(smp) in([1] f, [1] lower_bound, [1] upper_bound)
21+
// void assert_task(float *f, float *lower_bound, float *upper_bound)
22+
// {
23+
// if (*f > *lower_bound && *f < *upper_bound)
24+
// {
25+
// printf("assertion passed\n");
26+
// }
27+
// else
28+
// {
29+
// printf("assertion failed\n");
30+
// }
31+
// }
3232

3333
#pragma oss task device(fpga) in([4608000] data, [NUM_TRAINING] label)inout([NUM_FEATURES] theta)
3434
void SgdLR_sw(float data[NUM_FEATURES * NUM_TRAINING],
@@ -72,18 +72,18 @@ void SgdLR_sw(float data[NUM_FEATURES * NUM_TRAINING],
7272
theta[i] += -STEP_SIZE * gradient[i];
7373
}
7474
}
75-
printf("Epoch %d done\n", epoch);
75+
print_task(&epoch);
7676
#pragma oss taskwait
7777
}
7878
float lb1 = 2802.336181;
7979
float ub1 = 2802.336183;
8080
float lb2 = -8321.051759;
8181
float ub2 = -8321.051757;
8282

83-
assert_task(&theta[1], &lb1, &ub1);
84-
#pragma oss taskwait
85-
assert_task(&theta[1023], &lb2, &ub2);
86-
#pragma oss taskwait
83+
// assert_task(&theta[1], &lb1, &ub1);
84+
// #pragma oss taskwait
85+
// assert_task(&theta[1023], &lb2, &ub2);
86+
// #pragma oss taskwait
8787
}
8888

8989
int main(int argc, char *argv[])
File renamed without changes.

OmpSs/builds/dotproduct/dotproduct-d

23.9 KB
Binary file not shown.

OmpSs/builds/dotproduct/dotproduct-i

20.9 KB
Binary file not shown.

OmpSs/builds/dotproduct/dotproduct-p

20.9 KB
Binary file not shown.
7.87 MB
Binary file not shown.
33.9 KB
Binary file not shown.
28.1 KB
Binary file not shown.
28.1 KB
Binary file not shown.
8.49 MB
Binary file not shown.

OmpSs/builds/set_env.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export NANOS6_CONFIG_OVERRIDE="devices.fpga.reverse_offload=true,devices.fpga.requested_fpga_memory=0x800000"

0 commit comments

Comments
 (0)