conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix whole array assign test\n"
},
{
"from": "human",
"value": "use myrecord;\n\nproc myfunction() {\n\n var A:[1..10] R;\n\n for i in 1..10 {\n A[i].verify();\n A[i].init(x=i);\n A[i].verify();\n assert(A[i].x == i);\n }\n}\n\nmyfunction();\n\n"
},
... | chapel | chosen |
[
{
"from": "system",
"value": "Add record with secondary method to chpldoc/ tests.\n"
},
{
"from": "human",
"value": "/* This class will declare a method inside itself, but will have a\n method declared outside it as well */\nclass Foo {\n proc internalMeth() {\n\n }\n}\n\n// We expect these ... | chapel | chosen |
[
{
"from": "system",
"value": "Set up svn:ignore on a directory\n\nSet the svn:ignore property on this directory like it is on many other test\ndirectories.\n\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@13934 3a8e244f-b0f2-452b-bcba-4c88e055c3ca\n"
},
{
"from": "human",
"value": "de... | chapel | chosen |
[
{
"from": "system",
"value": "Update solution 5 to work with new-and-improved constness checking.\n\nPreviously it was taking advantage of the lack of constness checking on arrays.\n"
},
{
"from": "human",
"value": "/*\n * Smallest multiple\n */\n\nconfig const rangeMax = 20;\n\nconst values: [{... | chapel | chosen |
[
{
"from": "system",
"value": "Update one last test to the new task intent syntax\n"
},
{
"from": "human",
"value": "config const n = 11;\nvar s0 = \"kiss kiss\";\n\nvar l0: atomic int;\nvar l1: atomic int;\n\nwriteln(s0);\nbegin ref(s0) {\n l0.waitFor(1);\n s0 = \"bang bang\";\n l1.write(1);\... | chapel | chosen |
[
{
"from": "system",
"value": "Update solution 12 to avoid overflow.\n\nPreviously, it had a loop that went up to max(int). This overflows on the very\nfinal check, since the index will be max(int) and then it will add 1 to it. To\navoid the overflow, iterate to max(int)-1.\n"
},
{
"from": "human",
... | chapel | chosen |
[
{
"from": "system",
"value": "Change extern prototypes to specify c_string instead of string\n\n[ok'ed by Brad]\n\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@23791 3a8e244f-b0f2-452b-bcba-4c88e055c3ca\n"
},
{
"from": "human",
"value": "extern proc return_string_test():string;\nexte... | chapel | chosen |
[
{
"from": "system",
"value": "Use a ref instead of an alias operation\n\nAliases are now deprecated. The preferred strategy is to use a ref variable.\n"
},
{
"from": "human",
"value": "var %(aname)s__defaultRect = pych_to_chpl1D(%(aname)s_pych);\nvar %(aname)s => _getArray(%(aname)s__defaultRec... | chapel | chosen |
[
{
"from": "system",
"value": "Update to new zip() syntax.\n\nThis one slipped through the cracks, probably because it is only\ntested for gasnet.\n\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@20700 3a8e244f-b0f2-452b-bcba-4c88e055c3ca\n"
},
{
"from": "human",
"value": "iter foo(n: ... | chapel | chosen |
[
{
"from": "system",
"value": "Fix race condition that was causing valgrind testing non-determinism\n\nAdd synchronization to make sure output is printed in the right order\nwhile preserving the intent of the test (main thread continues on\nafter a begin).\n\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1026be41... | chapel | chosen |
[
{
"from": "system",
"value": "Fix nondeterministic output from walkdir() by requesting sorted output\n"
},
{
"from": "human",
"value": "use Filerator;\n\nfor dir in walkdirs(\"subdir\") {\n writeln(\"dir \", dir, \" contains:\");\n for file in glob(dir+\"/*\") do\n writeln(\" \", file);\n}... | chapel | chosen |
[
{
"from": "system",
"value": "Change an incorrect bracket syntax forall expression into a for expression for a\nloop that needs to be serial.\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@11785 3a8e244f-b0f2-452b-bcba-4c88e055c3ca\n"
},
{
"from": "human",
"value": "// Calcuate pi usi... | chapel | chosen |
[
{
"from": "system",
"value": "Change the last forall loop in this reduction test to make it deterministic.\n\nCompute the value of a bool independently at each iteration instead of\ndepending on the value from the previous iteration.\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@16103 3a8e244f-b... | chapel | chosen |
[
{
"from": "system",
"value": "Add test from commit message\n"
},
{
"from": "human",
"value": "writef(\"###\\n\", 1.1);\nwritef(\"###.\\n\", 1.1);\nwritef(\"###..\\n\", 1.1);\nwritef(\"###.##\\n\", 1.1);\nwritef(\"%{###}.##\\n\", 1.1, 2.2);\nwritef(\"%{###.}##\\n\", 1.1, 2.2);\nwritef(\"%{###}%{#... | chapel | chosen |
[
{
"from": "system",
"value": "Make the seed to the RandomStream class in my QuickSort test be set to\nsomething that causes the \"infinite\" loop failure instead of the current time.\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@9702 3a8e244f-b0f2-452b-bcba-4c88e055c3ca\n"
},
{
"from": "... | chapel | chosen |
[
{
"from": "system",
"value": "Set a maximum problem size to avoid timeouts\n"
},
{
"from": "human",
"value": "//\n// Measures both array iteration and array access time\n//\n\nuse Memory, Time, Types;\n\nconfig const zipIter = false;\nconfig const memFraction = 100;\nconfig const printPerf = fal... | chapel | chosen |
[
{
"from": "system",
"value": "Change initialization to avoid numerical instability.\n\nBrad pointed out that I could avoid the numerical instability by using\nfixed values. These aren't fixed, but they're multiples of fixed\nvalues, which seems to do the trick.\n\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1... | chapel | chosen |
[
{
"from": "system",
"value": "Update error message to be more helpful.\n"
},
{
"from": "human",
"value": "/*\n * Open a file and confirm its FS type is lustre.\n */\n\nuse IO;\n\nvar fp = open(\"SKIPIF\", iomode.r),\n fileType = fp.fstype();\n\nif fileType == FTYPE_LUSTRE {\n writeln(\"SUCCESS... | chapel | chosen |
[
{
"from": "system",
"value": "Fix my spin wait -> sync var change\n\nI realized that it had the possibility to deadlock the way I changed it because\n+= causes a read and write.\n\n\ngit-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@13565 3a8e244f-b0f2-452b-bcba-4c88e055c3ca\n"
},
{
"from": "huma... | chapel | chosen |
[
{
"from": "system",
"value": "Reduce problem size to avoid timeouts on non-performance configurations\n"
},
{
"from": "human",
"value": "//\n// Measures both array iteration and array access time\n//\n\nuse Memory, Time, Types;\n\nconfig const zipIter = false;\nconfig const memFraction = 16;\nco... | chapel | chosen |
README.md exists but content is empty.
- Downloads last month
- 6