Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Mar 11, 2024
1 parent f2e327c commit 15124cb
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions C/Savina/src/concurrency/BoundedBuffer.lf
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ reactor ConsumerReactor(bank_index: size_t = 0, consCost: size_t = 25) {
cog.outl(f' consCost: size_t={consCost},')
cog.outl(f' numItemsPerProducer: size_t={numItemsPerProducer},')
cog.outl(f' numConsumers: size_t={numConsumers},')
cog.outl(f' numProducers: size_t={numProducers}')
cog.outl(f' numProducers: size_t={numProducers})')
]]] */
main reactor(
numIterations: size_t = 12,
Expand All @@ -224,7 +224,7 @@ main reactor(
consCost: size_t = 25,
numItemsPerProducer: size_t = 1000,
numConsumers: size_t = 40,
numProducers: size_t = 40)
numProducers: size_t = 40)
/* [[[end]]] */ // keep-format
{
runner = new BenchmarkRunner(num_iterations=numIterations)
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/concurrency/LogisticMap.lf
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ reactor Manager(numSeries: size_t = 10, numTerms: size_t = 25000) {
}

/* [[[cog
cog.outl(f"main reactor (numIterations: size_t={numIterations}, numTerms: size_t={numTerms}, startRate: double={startRate}, numSeries: size_t={numSeries}) {{")
cog.outl(f"main reactor (numIterations: size_t={numIterations}, numTerms: size_t={numTerms}, startRate: double={startRate}, numSeries: size_t={numSeries})")
]]] */ // keep-format
main reactor(
numIterations: size_t = 12,
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/concurrency/Philosophers.lf
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ reactor Arbitrator(num_philosophers: size_t = 20) {
}

/* [[[cog
cog.outl(f"main reactor Philosophers(numIterations:size_t={numIterations}, num_philosophers:size_t={numPhilosophers}, count:size_t={numEatingRounds}) {{")
cog.outl(f"main reactor Philosophers(numIterations:size_t={numIterations}, num_philosophers:size_t={numPhilosophers}, count:size_t={numEatingRounds})")
]]] */ // keep-format
main reactor Philosophers(
numIterations: size_t = 12,
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/micro/Chameneos.lf
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ reactor ChameneosChameneoReactor(bank_index: size_t = 0, numChameneos: size_t =
}

/* [[[cog
cog.outl(f"main reactor (numIterations:size_t={numIterations}, numMeetings:size_t={numMeetings}, numChameneos:size_t={numChameneos}) {{")
cog.outl(f"main reactor (numIterations:size_t={numIterations}, numMeetings:size_t={numMeetings}, numChameneos:size_t={numChameneos})")
]]] */ // keep-format
main reactor(numIterations: size_t = 12, numMeetings: size_t = 200000, numChameneos: size_t = 100)
/* [[[end]]] */ // keep-format
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/parallelism/Apsp.lf
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ reactor ApspMatrix(
cog.outl(f' dimension:size_t={dimension},')
cog.outl(f' dimension2:size_t={dimension2},')
cog.outl(f' verbose:bool=false')
cog.outl(') {')
cog.outl(')')
]]] */ // keep-format
main reactor(
num_iterations: size_t = 12,
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/parallelism/FilterBank.lf
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ reactor Sink(print_rate: size_t = 100) {
}

/* [[[cog
cog.outl(f'main reactor (numIterations:size_t={numIterations}, columns: size_t={columns}, channels: size_t={channels}) {{')
cog.outl(f'main reactor (numIterations:size_t={numIterations}, columns: size_t={columns}, channels: size_t={channels})')
]]] */ // keep-format
main reactor(numIterations: size_t = 12, columns: size_t = 16384, channels: size_t = 8)
/* [[[end]]] */ // keep-format
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/parallelism/GuidedSearch.lf
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ reactor Worker(bank_index: int = 0, threshold: size_t = 1024) {
cog.outl(f' gridSize:size_t={gridSize},')
cog.outl(f' priorities:size_t={priorities},')
cog.outl(f' numWorkers:size_t={numWorkers}')
cog.outl(') {')
cog.outl(')')
]]] */ // keep-format
main reactor(
numIterations: size_t = 12,
Expand Down
2 changes: 1 addition & 1 deletion C/Savina/src/parallelism/RadixSort.lf
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ reactor ValidationReactor(numValues: int = 100000) {
/* [[[cog
import math
numBits = int(math.log2(int(maxValue))) # this always rounds down
cog.outl(f'main reactor RadixSort(numIterations:int={numIterations}, dataSize:int={dataSize}, maxValue:long={maxValue}, numBits:unsigned={numBits}, seed:long={seed}) {{')
cog.outl(f'main reactor RadixSort(numIterations:int={numIterations}, dataSize:int={dataSize}, maxValue:long={maxValue}, numBits:unsigned={numBits}, seed:long={seed})')
]]] */ // keep-format
main reactor RadixSort(
numIterations: int = 12,
Expand Down

0 comments on commit 15124cb

Please sign in to comment.