Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
vidsinghal committed Jan 8, 2024
1 parent 4e729e2 commit 6f36fdb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gibbon-compiler/examples/layout_bench/GenerateLayout1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mkBlogs_layout1 length =
id = (ID (10 - (mod length 10)))
author = (Author (getRandomString 5))
date = (Date (getRandomString 5))
content = (Content (Plain (mkRandomInlineList 100)))
content = (Content (Plain (mkRandomInlineList 150)))
tags = (TagList (mkSomeTags 10))
rst = (mkBlogs_layout1 (length - 1))
in Layout1 header id author date content tags rst
Expand Down Expand Up @@ -49,6 +49,6 @@ mkBlogs_layout1 length =
--

-- manyFuncs
-- Content -> 50
-- Content -> 150
-- Tags -> 10
-- Blogs -> 1000000
4 changes: 2 additions & 2 deletions gibbon-compiler/examples/layout_bench/GenerateLayout8.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ mkBlogs_layout8 length =
if length <= 0 then End
else
let
content = (Content (Plain (mkRandomInlineList 50)))
content = (Content (Plain (mkRandomInlineList 500)))
rst = (mkBlogs_layout8 (length - 1))
id = (ID (10 - (mod length 10)))
author = (Author (getRandomString 5))
date = (Date (getRandomString 5))
header = (Header (getRandomString 5))
tags = (TagList (mkSomeTags 10))
tags = (TagList (mkSomeTags 5))
in Layout8 content rst id author date header tags
2 changes: 1 addition & 1 deletion gibbon-compiler/examples/layout_bench/layout8TagSearch.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ gibbon_main =
let
blogs = mkBlogs_layout8 400000
keyword :: Vector Char
keyword = "a"
keyword = "b"
newblgs = iterate (emphKeywordInTag keyword blogs)
in blogLength newblgs == blogLength blogs
2 changes: 1 addition & 1 deletion gibbon-rts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ $(BUILD_DIR)/%.o: $(C_RTS_DIR)/%.o
mv $^ $@

$(C_RTS_DIR)/%.o: $(C_RTS_DIR)/%.c
$(CC) $(CFLAGS) -c -o $@ $^
$(CC) $(CFLAGS) -c -o $@ $^ -l:libpapi.a

$(BUILD_DIR)/%.h: $(C_RTS_DIR)/%.h
mkdir -p $(BUILD_DIR) && \
Expand Down
2 changes: 1 addition & 1 deletion gibbon-rts/rts-c/gibbon_rts.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#endif

#ifdef _GIBBON_ENABLE_PAPI
#include <papi.h>
#include "/local/scratch/a/singhav/papi_install/include/papi.h"
#endif

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 6f36fdb

Please sign in to comment.