Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
qizzz committed Dec 28, 2023
1 parent 8c8c8fe commit 6033344
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions DPDPU/OffloadEngine/DPU/Include/UDF.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ typedef void (*OffloadPred)(
CacheTableT* CacheTable,
RequestDescriptorT* ReqsForHost,
RequestDescriptorT* ReqsForDPU,
uint8_t* NumReqsForHost,
uint8_t* NumReqsForDPU
uint16_t* NumReqsForHost,
uint16_t* NumReqsForDPU
);

//
Expand Down Expand Up @@ -81,4 +81,4 @@ GetOffloadFunc(
void
UnloadLibrary(
void *Lib
);
);
4 changes: 2 additions & 2 deletions DPDPU/OffloadEngine/UDFSamples/OffloadPred.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ void OffloadPred(
CacheTableT* CacheTable,
RequestDescriptorT* ReqsForHost,
RequestDescriptorT* ReqsForDPU,
uint8_t* NumReqsForHost,
uint8_t* NumReqsForDPU
uint16_t* NumReqsForHost,
uint16_t* NumReqsForDPU
) {
const uint16_t reqSize = sizeof(struct MessageHeader);

Expand Down
6 changes: 3 additions & 3 deletions DPDPU/OffloadEngine/UDFSamples/OffloadPredDisaggApp.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ void OffloadPred(
CacheTableT* CacheTable,
RequestDescriptorT* ReqsForHost,
RequestDescriptorT* ReqsForDPU,
uint8_t* NumReqsForHost,
uint8_t* NumReqsForDPU
uint16_t* NumReqsForHost,
uint16_t* NumReqsForDPU
) {
const uint16_t reqSize = sizeof(struct MessageHeader);
const int numReqsForDPU = Bytes / reqSize;
Expand All @@ -29,4 +29,4 @@ void OffloadPred(
ReqsForDPU[i].Offset = i * reqSize;
ReqsForDPU[i].Bytes = reqSize;
}
}
}
8 changes: 4 additions & 4 deletions DPDPU/OffloadEngine/UDFSamples/OffloadPredExample.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ void OffloadPred(
CacheTableT* CacheTable,
RequestDescriptorT* ReqsForHost,
RequestDescriptorT* ReqsForDPU,
uint8_t* NumReqsForHost,
uint8_t* NumReqsForDPU
uint16_t* NumReqsForHost,
uint16_t* NumReqsForDPU
) {
*NumReqsForHost = 1;
*NumReqsForDPU = 0;
Expand All @@ -30,8 +30,8 @@ void OffloadPred(
CacheTableT* CacheTable,
RequestDescriptorT* ReqsForHost,
RequestDescriptorT* ReqsForDPU,
uint8_t* NumReqsForHost,
uint8_t* NumReqsForDPU
uint16_t* NumReqsForHost,
uint16_t* NumReqsForDPU
) {
*NumReqsForHost = 0;
*NumReqsForDPU = 1;
Expand Down

0 comments on commit 6033344

Please sign in to comment.