Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion coldstart/.env

This file was deleted.

1 change: 0 additions & 1 deletion coldstart/.gitignore

This file was deleted.

Empty file removed coldstart/coldstart.prev
Empty file.
24 changes: 0 additions & 24 deletions coldstart/coldstart.sh

This file was deleted.

29 changes: 0 additions & 29 deletions coldstart/coldstart_agent.py

This file was deleted.

61 changes: 0 additions & 61 deletions coldstart/system_prompt.txt

This file was deleted.

36 changes: 20 additions & 16 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,36 @@ int main() {
cout << "=========================================== \n";
cout << "=============TESTING DAG VERIFICATION============== \n";

float val_a[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f};
float val_b[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f};
float val_c[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f};
float val_d[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f};
float val_a[900]{};
float val_b[900]{};
float val_c[900]{};
float val_d[900]{};

// TACTICAL FIX: Make 'e' the exact same size to avoid a GPU segfault
// before we implement a dedicated GPU broadcasting kernel!
float val_e[] = {7.0f, 8.0f, 7.0f, 8.0f, 7.0f, 8.0f};
float val_e[900]{};

uint32_t dims_a[] = {3, 2};
uint32_t dims_b[] = {3, 2};
uint32_t dims_c[] = {3, 2};
uint32_t dims_d[] = {3, 2};
uint32_t dims_e[] = {3, 2}; // Matched dimensions!
uint32_t dims_a[] = {30, 30};
uint32_t dims_b[] = {30, 30};
uint32_t dims_c[] = {30, 30};
uint32_t dims_d[] = {30, 30};
uint32_t dims_e[] = {30, 30}; // Matched dimensions!

tensor_t *a = tensor_create(pool, tensor_dtype_t::FLOAT32_T, 2, dims_a, val_a);
tensor_t *b = tensor_create(pool, tensor_dtype_t::FLOAT32_T, 2, dims_b, val_b);
tensor_t *c = tensor_create(pool, tensor_dtype_t::FLOAT32_T, 2, dims_c, val_c);
tensor_t *d = tensor_create(pool, tensor_dtype_t::FLOAT32_T, 2, dims_d, val_d);
tensor_t *e = tensor_create(pool, tensor_dtype_t::FLOAT32_T, 2, dims_e, val_e);

tensor_t *f = tensor_add(pool, a, b);
tensor_t *g = tensor_add(pool, b, c);
tensor_t *h = tensor_add(pool, e, f);
tensor_t *i = tensor_add(pool, h, a);
tensor_t *j = tensor_add(pool, i, g);
tensor_fill_random_normal(a, 10.1, 5.7);
tensor_fill_random_normal(b, 10.1, 5.7);
tensor_fill_random_normal(c, 10.1, 5.7);
tensor_fill_random_normal(d, 10.1, 5.7);
tensor_fill_random_normal(e, 10.1, 5.7);
tensor_t *f = tensor_mul(pool, a, b);
tensor_t *g = tensor_mul(pool, b, c);
tensor_t *h = tensor_mul(pool, e, f);
tensor_t *i = tensor_mul(pool, h, a);
tensor_t *j = tensor_mul(pool, i, g);

cout << "=========================================== \n";
cout << "==============LAZY EVAL DONE=============== \n";
Expand Down
Binary file added scripts/Experiments/config/app
Binary file not shown.
4 changes: 4 additions & 0 deletions scripts/Experiments/config/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"hello":"world",
"Yes":"No"
}
17 changes: 17 additions & 0 deletions scripts/Experiments/config/json.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>
#include "json_utils.h"

int main() {
try {
auto data = readJsonToMap("data.json");

for (const auto& [key, value] : data) {
std::cout << key << " : " << value << std::endl;
}

} catch (const std::exception& e) {
std::cout << "Error: " << e.what() << std::endl;
}

return 0;
}
Loading
Loading