author int64 658 755k | date stringdate 2012-06-12 08:34:29 2024-07-22 14:51:21 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods listlengths 1 16 | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
378,357 | 11.04.2020 21:41:02 | -3,600 | 7b2e817ed2e4a003e23801517ce533c8e5f4c302 | [Build] Update CMake to use C++11 and fix MacOS warnings | [
{
"change_type": "MODIFY",
"old_path": "src/CMakeLists.txt",
"new_path": "src/CMakeLists.txt",
"diff": "@@ -32,4 +32,7 @@ endif()\ntarget_link_libraries(libocca ${LIBOCCA_LIBRARIES})\n+target_compile_features(libocca PUBLIC cxx_std_11)\n+target_compile_options(libocca PRIVATE -Wall -Wextra -Wno-c++1... | C++ | MIT License | libocca/occa | [Build] Update CMake to use C++11 and fix MacOS warnings (#313) |
378,349 | 13.04.2020 23:18:55 | 14,400 | 1a39edfff211a778121ae1fd24a91cb8be65a8d6 | [Preprocessor] Handles nested parentheses when reading arguments | [
{
"change_type": "MODIFY",
"old_path": "src/lang/macro.cpp",
"new_path": "src/lang/macro.cpp",
"diff": "@@ -629,12 +629,12 @@ namespace occa {\nreturn true;\n}\n- const int argc = argCount();\n- int argIndex = 0;\n+ tokenVector argTokens;\n// Count the initial [(] token\nint parenthesesCount = 1;\n+... | C++ | MIT License | libocca/occa | [Preprocessor] Handles nested parentheses when reading arguments (#315) |
378,349 | 14.04.2020 01:17:35 | 14,400 | 37c5311e1548589171c1613d3f417909ce77fac1 | [Test] Fix issues with MacOS tests (Still fails in Travis) | [
{
"change_type": "MODIFY",
"old_path": "tests/run_examples",
"new_path": "tests/run_examples",
"diff": "@@ -83,6 +83,10 @@ for mode in $(\"${OCCA_DIR}/bin/occa\" modes); do\ncd \"${EXAMPLE_DIR}/${example_dir}\"\nmake clean; make\n+ if [[ $(uname -s) == \"Darwin\" || \"${TRAVIS_OS_NAME}\" == \"osx\" ... | C++ | MIT License | libocca/occa | [Test] Fix @rpath issues with MacOS tests (Still fails in Travis) (#316) |
378,349 | 14.04.2020 01:17:44 | 14,400 | af622f8b68cda16b34c6ebf027dfd36e94ebad0b | [Core] Add support for OCCA_INCLUDE_PATH and OCCA_LIBRARY_PATH | [
{
"change_type": "MODIFY",
"old_path": "include/occa/modes/cuda/device.hpp",
"new_path": "include/occa/modes/cuda/device.hpp",
"diff": "@@ -65,7 +65,8 @@ namespace occa {\nconst occa::properties &kernelProps,\nio::lock_t lock);\n- void setArchCompilerFlags(occa::properties &kernelProps);\n+ void set... | C++ | MIT License | libocca/occa | [Core] Add support for OCCA_INCLUDE_PATH and OCCA_LIBRARY_PATH (#317) |
378,356 | 14.04.2020 23:40:14 | -36,000 | 6a620f24354f544e40dc60399b088d6ff635f576 | [C] Use from stdbool.h for boolean types | [
{
"change_type": "MODIFY",
"old_path": "include/occa/c/types.h",
"new_path": "include/occa/c/types.h",
"diff": "#define OCCA_C_TYPES_HEADER\n#include <stdint.h>\n+#include <stdbool.h>\n#include <stdlib.h>\n#include <occa/c/defines.h>\n@@ -19,7 +20,7 @@ typedef struct {\nint magicHeader;\nint type;\n... | C++ | MIT License | libocca/occa | [C] Use from stdbool.h for boolean types (#318) |
378,354 | 14.04.2020 18:59:07 | -19,080 | 8fb5f93536b9e8accea3ae5154e9dbbde2547350 | [CUDA] ptx compilation in native CUDA mode was missing include files | [
{
"change_type": "MODIFY",
"old_path": "src/modes/cuda/device.cpp",
"new_path": "src/modes/cuda/device.cpp",
"diff": "@@ -305,7 +305,7 @@ namespace occa {\n//---[ Compiling Command ]--------\ncommand.str(\"\");\ncommand << allProps[\"compiler\"]\n- << ' ' << allProps[\"compiler_flags\"]\n+ << ' ' <<... | C++ | MIT License | libocca/occa | [CUDA] ptx compilation in native CUDA mode was missing include files (#319) |
378,349 | 14.04.2020 20:10:11 | 14,400 | 327badbed03fb6acd332d5ef8a8c4e7709476fc8 | [OpenCl] Fix slice of slices, can't take subbuffers of subbuffers... | [
{
"change_type": "MODIFY",
"old_path": "include/occa/modes/opencl/memory.hpp",
"new_path": "include/occa/modes/opencl/memory.hpp",
"diff": "@@ -21,6 +21,9 @@ namespace occa {\nconst occa::properties &props);\nprivate:\n+ cl_mem *rootClMem;\n+ dim_t rootOffset;\n+\ncl_mem clMem;\nvoid *mappedPtr;\n"
... | C++ | MIT License | libocca/occa | [OpenCl] Fix slice of slices, can't take subbuffers of subbuffers... (#278) |
378,349 | 15.04.2020 03:22:39 | 14,400 | f0b26b77acb3e0b9493faab6d1c380abc94534da | [C] Update occaFree | [
{
"change_type": "MODIFY",
"old_path": "examples/c/01_add_vectors/main.c",
"new_path": "examples/c/01_add_vectors/main.c",
"diff": "@@ -105,13 +105,13 @@ int main(int argc, const char **argv) {\nfree(ab);\n// Free device memory and occa objects\n- occaFree(args);\n- occaFree(props);\n- occaFree(addV... | C++ | MIT License | libocca/occa | [C] Update occaFree (#322) |
378,355 | 15.04.2020 20:47:19 | 18,000 | d916f6cfbec003c65dccae39ddf4fd47848c6533 | [Cmake] HIP/CUDA/OpenCL on AMD and NV support through CMake | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -42,10 +42,11 @@ endif()\n# searches for CUDA if allowed\nif (ALLOW_CUDA)\n- set(OCCA_CUDA_ENABLED 1)\n- set(WITH_CUDA 1)\n- enable_language(CUDA)\n- set(CUDA_USE_STATIC_CUDA_RUNTIME OFF)\n+ include(CU... | C++ | MIT License | libocca/occa | [Cmake] HIP/CUDA/OpenCL on AMD and NV support through CMake (#323) |
378,349 | 15.04.2020 21:30:48 | 18,000 | c91f4a822d17cbc8b18dac515e63cab86c8d8970 | [CI] Trying out Github Actions | [
{
"change_type": "ADD",
"old_path": null,
"new_path": ".github/workflows/test-workflow.yml",
"diff": "+name: Test Workflow\n+\n+on:\n+ push:\n+ branches: [ master ]\n+ pull_request:\n+ branches: [ master ]\n+\n+jobs:\n+ run:\n+ strategy:\n+ matrix:\n+ include:\n+ - os: ubuntu-18.04\n+ CC: gcc-8\n+ C... | C++ | MIT License | libocca/occa | [CI] Trying out Github Actions |
378,349 | 15.04.2020 23:53:11 | 14,400 | 162e0ce0228327e0086c12234b7785ea78634811 | [CI] Removing Travis CI to test Github Actions | [
{
"change_type": "MODIFY",
"old_path": ".codecov.yml",
"new_path": ".codecov.yml",
"diff": "@@ -24,7 +24,7 @@ ignore:\n- src/tools/runFunction.cpp\n# Exception is not tracked properly\n- src/tools/exception.cpp\n- # Modes that can't be tested with Travis\n+ # Modes that can't be tested with CI\n- in... | C++ | MIT License | libocca/occa | [CI] Removing Travis CI to test Github Actions (#324) |
378,358 | 22.04.2020 17:29:34 | -7,200 | 02c1782c3b7fb5589eb196f3e8f9e3ac6f486ab1 | [Build][HIP] Fix HIP compilation issues | [
{
"change_type": "MODIFY",
"old_path": "scripts/Makefile",
"new_path": "scripts/Makefile",
"diff": "@@ -273,26 +273,19 @@ endif\n#---[ HIP ]-----------------------------\nhipEnabled = 0\n-ifneq ($(OCCA_HIP_ENABLED),0)\n- ifeq ($(usingLinux),1)\nhipIncFlags = $(call includeFlagsFor,hip/hip_runtime_ap... | C++ | MIT License | libocca/occa | [Build][HIP] Fix HIP compilation issues (#330) |
378,356 | 27.04.2020 06:19:42 | -36,000 | 560d8eb320dccb664427b44e58f7acff7bc5b35a | [C] Use bool instead of int | [
{
"change_type": "MODIFY",
"old_path": "include/occa/c/json.h",
"new_path": "include/occa/c/json.h",
"diff": "@@ -23,11 +23,11 @@ OCCA_LFUNC const char* OCCA_RFUNC occaJsonDump(occaJson j,\n//---[ Type checks ]--------------------\n-OCCA_LFUNC int OCCA_RFUNC occaJsonIsBoolean(occaJson j);\n-OCCA_LFU... | C++ | MIT License | libocca/occa | [C] Use bool instead of int (#331) |
378,356 | 27.04.2020 09:57:25 | -36,000 | cda9b75c0207235496e98a2e5f9dcb161741fed2 | [C] Use bool instead of int for boolean types everywhere | [
{
"change_type": "MODIFY",
"old_path": "include/occa/c/device.h",
"new_path": "include/occa/c/device.h",
"diff": "@@ -9,7 +9,7 @@ OCCA_START_EXTERN_C\nOCCA_LFUNC occaDevice OCCA_RFUNC occaCreateDevice(occaType info);\nOCCA_LFUNC occaDevice OCCA_RFUNC occaCreateDeviceFromString(const char *info);\n-O... | C++ | MIT License | libocca/occa | [C] Use bool instead of int for boolean types everywhere (#332) |
378,356 | 28.04.2020 12:03:14 | -36,000 | f906041240eb36e51b80ba542682975314db03a4 | [Build] Fix compiler flags for OpenMP | [
{
"change_type": "MODIFY",
"old_path": "scripts/Makefile",
"new_path": "scripts/Makefile",
"diff": "@@ -230,14 +230,12 @@ endif\n#---[ OpenMP ]--------------------------\nifdef OCCA_OPENMP_ENABLED\nopenmpEnabled = $(OCCA_OPENMP_ENABLED)\n- fOpenmpEnabled = $(OCCA_OPENMP_ENABLED)\nelse\nopenmpEnabled... | C++ | MIT License | libocca/occa | [Build] Fix compiler flags for OpenMP (#335) |
378,356 | 03.05.2020 03:57:55 | -36,000 | e8e27cf23b3050eab593fe40c34da762a04a209b | [C] Add occaTrue and occaFalse | [
{
"change_type": "MODIFY",
"old_path": "include/occa/c/types.h",
"new_path": "include/occa/c/types.h",
"diff": "@@ -91,6 +91,8 @@ extern const int OCCA_PROPERTIES;\nextern const occaType occaNull;\nextern const occaType occaUndefined;\nextern const occaType occaDefault;\n+extern const occaType occaT... | C++ | MIT License | libocca/occa | [C] Add occaTrue and occaFalse (#338) |
378,356 | 03.05.2020 03:59:19 | -36,000 | 5956d3cc9f020769793d598766c8ef4eb6357867 | [Build][CI] Minor fixes | [
{
"change_type": "MODIFY",
"old_path": "Makefile",
"new_path": "Makefile",
"diff": "@@ -113,7 +113,7 @@ $(COMPILED_DEFINES_CHANGED):\n#---[ Builds ]------------------------------------\n# ---[ libocca ]-------------\n$(libPath)/libocca.$(soExt):$(objects) $(headers) $(COMPILED_DEFINES)\n- mkdir -p $... | C++ | MIT License | libocca/occa | [Build][CI] Minor fixes (#336) |
378,356 | 05.05.2020 00:24:01 | -36,000 | a73b681a6a6464f5c5ca2f9696d7e3d0fdef9992 | [Build][CI] Add -march=native for gcc and fix CI tests | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build.yml",
"new_path": ".github/workflows/build.yml",
"diff": "@@ -35,10 +35,10 @@ jobs:\nCXX: clang++-9\nOCCA_COVERAGE: 0\n- - name: (MacOS) gcc\n+ - name: (MacOS) gcc-9\nos: macos-10.15\n- CC: gcc\n- CXX: g++\n+ CC: gcc-9\n+ CXX: g++-9\nOC... | C++ | MIT License | libocca/occa | [Build][CI] Add -march=native for gcc and fix CI tests (#340) |
378,349 | 30.05.2020 21:47:10 | 14,400 | 2f28ff664d83790855287d5bffa52df76dfe46db | [Preprocessor] Allows including standard headers (prints warnings) | [
{
"change_type": "MODIFY",
"old_path": "include/occa/io/utils.hpp",
"new_path": "include/occa/io/utils.hpp",
"diff": "@@ -35,6 +35,7 @@ namespace occa {\nstd::string slashToSnake(const std::string &str);\nbool isAbsolutePath(const std::string &filename);\n+ std::string getRelativePath(const std::str... | C++ | MIT License | libocca/occa | [Preprocessor] Allows including standard headers (prints warnings) (#346) |
378,349 | 30.05.2020 22:30:52 | 14,400 | 4c1a3087643a32dd72b6a413c1ded38c8856a7fc | [Preprocessor] Adds OCCA defines when compiling kernels | [
{
"change_type": "MODIFY",
"old_path": "src/lang/preprocessor.cpp",
"new_path": "src/lang/preprocessor.cpp",
"diff": "@@ -79,6 +79,15 @@ namespace occa {\ncompilerMacros[specialMacros[i]->name()] = specialMacros[i];\n}\n+ // OCCA-specific macros\n+ addCompilerDefine(\"OCCA_MAJOR_VERSION\", toString(... | C++ | MIT License | libocca/occa | [Preprocessor] Adds OCCA defines when compiling kernels (#347) |
378,349 | 31.05.2020 00:29:21 | 14,400 | ddccbd590b9c7762e70ce07d26380663de751b92 | [Lang] Pretty-prints long function calls and tuples | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/expr/exprNode.hpp",
"new_path": "include/occa/lang/expr/exprNode.hpp",
"diff": "@@ -21,6 +21,10 @@ namespace occa {\ntypedef std::stack<exprNode*> exprNodeStack;\ntypedef std::vector<token_t*> tokenVector;\n+ // Variables to help make output ... | C++ | MIT License | libocca/occa | [Lang] Pretty-prints long function calls and tuples (#348) |
378,349 | 31.05.2020 16:02:22 | 14,400 | c83a8cb8cfa0551b8517527a012915d6f3ec5f03 | [Parser] Cleans up output indentation when using a buffer | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/printer.hpp",
"new_path": "include/occa/lang/printer.hpp",
"diff": "@@ -56,23 +56,35 @@ namespace occa {\nvoid print(const TM &t) {\nss << t;\nconst std::string str = ss.str();\n- const char *c_str = str.c_str();\nconst int chars = (int) str.... | C++ | MIT License | libocca/occa | [Parser] Cleans up output indentation when using a buffer (#352) |
378,349 | 31.05.2020 17:37:42 | 14,400 | 34cf8ab5ebe4f21937102c527636df071e23b51d | [CI] Adds codecov back | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build.yml",
"new_path": ".github/workflows/build.yml",
"diff": "@@ -16,6 +16,7 @@ jobs:\nCC: gcc-8\nCXX: g++-8\nFC: gfortran-8\n+ GCOV: gcov-8\nOCCA_COVERAGE: 1\nOCCA_FORTRAN_ENABLED: 1\n@@ -24,6 +25,7 @@ jobs:\nCC: gcc-9\nCXX: g++-9\nFC: gfo... | C++ | MIT License | libocca/occa | [CI] Adds codecov back (#351) |
378,349 | 31.05.2020 22:18:31 | 14,400 | 013c0f1c66c132aaf9569d2d278f5db42c8eb334 | [Preprocessor] Adds OKL_KERNEL_HASH define to help debug running kernels | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/preprocessor.hpp",
"new_path": "include/occa/lang/preprocessor.hpp",
"diff": "@@ -63,6 +63,8 @@ namespace occa {\n//================================\n//---[ Metadata ]-----------------\n+ occa::properties settings;\n+\nstrToBoolMap dependenci... | C++ | MIT License | libocca/occa | [Preprocessor] Adds OKL_KERNEL_HASH define to help debug running kernels (#354) |
378,349 | 01.06.2020 02:14:10 | 14,400 | fbcd3a39013c26719777c1a68eecb5de2df9ade7 | [Parser] Bug not setting the proper child statements with comment statements | [
{
"change_type": "MODIFY",
"old_path": "src/lang/parser.cpp",
"new_path": "src/lang/parser.cpp",
"diff": "@@ -663,7 +663,7 @@ namespace occa {\n// We need to create a block statement to hold these statements\nblockStatement *blockSmnt = new blockStatement(smnt->up,\nsmnt->source);\n- statementPtrVec... | C++ | MIT License | libocca/occa | [Parser] Bug not setting the proper child statements with comment statements (#355) |
378,349 | 01.06.2020 23:44:49 | 14,400 | d321a21bd0a57d877244b1fc59ca5df518d9cdeb | [Parser] Adds directiveStatement from directiveToken | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/parser.hpp",
"new_path": "include/occa/lang/parser.hpp",
"diff": "@@ -207,6 +207,7 @@ namespace occa {\nstatement_t* loadCommentStatement(attributeTokenMap &smntAttributes);\n+ statement_t* loadDirectiveStatement(attributeTokenMap &smntAttrib... | C++ | MIT License | libocca/occa | [Parser] Adds directiveStatement from directiveToken (#356) |
378,349 | 04.06.2020 07:15:06 | 14,400 | 295eba66b9b2cdfc9f987fec7046dca79a0f0a2b | [Parser] tokenContext auto-removes certain tokens | [
{
"change_type": "MODIFY",
"old_path": "include/occa/c/types.h",
"new_path": "include/occa/c/types.h",
"diff": "@@ -100,7 +100,7 @@ extern const occaUDim_t occaAllBytes;\nOCCA_LFUNC bool OCCA_RFUNC occaIsUndefined(occaType value);\nOCCA_LFUNC bool OCCA_RFUNC occaIsDefault(occaType value);\n-OCCA_LFU... | C++ | MIT License | libocca/occa | [Parser] tokenContext auto-removes certain tokens (#358) |
378,349 | 06.06.2020 11:53:27 | 14,400 | 93c97b9d66bf85250fa7a622fe3e11b2aaaef1c8 | [README] Adds Slack badge | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "<p align=\"center\">\n<a href=\"https://github.com/libocca/occa/workflows/Build/badge.svg\"><img alt=\"Build\" src=\"https://github.com/libocca/occa/workflows/Build/badge.svg\"></a>\n<a href=\"https://codecov.io/gi... | C++ | MIT License | libocca/occa | [README] Adds Slack badge |
378,349 | 06.06.2020 15:37:20 | 14,400 | 8f69e844b52a67778a42ab1b4ef893040be4a1bd | [Lang] Adds stream cache clearning to fix | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/preprocessor.hpp",
"new_path": "include/occa/lang/preprocessor.hpp",
"diff": "@@ -37,8 +37,7 @@ namespace occa {\nextern const int finishedIf;\n}\n- class preprocessor_t : public withInputCache<token_t*, token_t*>,\n- public withOutputCache<t... | C++ | MIT License | libocca/occa | [Lang] Adds stream cache clearning to fix #311 (#362) |
378,349 | 06.06.2020 22:47:18 | 14,400 | 18b787e49d9a03d94fdc7b27879ffc40784b34da | [Parser] Fixes comments on blocks | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/parser.hpp",
"new_path": "include/occa/lang/parser.hpp",
"diff": "@@ -51,6 +51,7 @@ namespace occa {\nstatementContext_t smntContext;\nstatementPeeker_t smntPeeker;\n+ int loadingStatementType;\nbool checkSemicolon;\nunknownToken defaultRootT... | C++ | MIT License | libocca/occa | [Parser] Fixes comments on blocks (#364) |
378,349 | 06.06.2020 23:36:40 | 14,400 | 2b3759bd212240999ed2a85d57a869a2c595533c | [Tokenizer] Don't prematurely load primitives | [
{
"change_type": "MODIFY",
"old_path": "src/lang/tokenizer.cpp",
"new_path": "src/lang/tokenizer.cpp",
"diff": "@@ -392,12 +392,19 @@ namespace occa {\nif (c == '\\0') {\nreturn tokenType::none;\n}\n- // Primitive must be checked before identifiers\n- // and operators since:\n+\n+ const char *pos = ... | C++ | MIT License | libocca/occa | [Tokenizer] Don't prematurely load primitives (#365) |
378,349 | 07.06.2020 17:10:20 | 14,400 | d4fdc10938bc323f03a0f7acca6ed41ca4c98a29 | [Parser] Properly stores struct definitions | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/file.hpp",
"new_path": "include/occa/lang/file.hpp",
"diff": "@@ -99,6 +99,8 @@ namespace occa {\ndim_t distanceTo(const fileOrigin &origin);\n+ bool operator == (const fileOrigin &origin);\n+\nvoid preprint(io::output &out) const;\nvoid post... | C++ | MIT License | libocca/occa | [Parser] Properly stores struct definitions (#366) |
378,355 | 17.06.2020 22:00:19 | 18,000 | 7b9b2a97879c1f2a384c4fed234aece4d331e00d | [CMake] Place compiledDefines header in Cmake build directory, rather than source tree. | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -62,10 +62,11 @@ set_target_properties(libocca PROPERTIES OUTPUT_NAME occa LIBRARY_OUTPUT_DIRECTO\n#Find needed and requested packages\nfind_package(Threads REQUIRED)\n-target_link_libraries(libocca PR... | C++ | MIT License | libocca/occa | [CMake] Place compiledDefines header in Cmake build directory, rather than source tree. (#371) |
378,349 | 12.07.2020 20:57:03 | 14,400 | 7074540c64d196e5c4899f4f89dffd66fe2411a9 | [Core] Allows for case-insensitive mode names | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build.yml",
"new_path": ".github/workflows/build.yml",
"diff": "@@ -2,9 +2,9 @@ name: Build\non:\npush:\n- branches: [ master ]\n+ branches: [ main ]\npull_request:\n- branches: [ master ]\n+ branches: [ main ]\njobs:\nrun:\n"
},
{
"c... | C++ | MIT License | libocca/occa | [Core] Allows for case-insensitive mode names (#384) |
378,349 | 16.07.2020 23:57:14 | 14,400 | 88b56b6eda3753bc43c97febbabb0d208ed39fb8 | [CUDA] Removes certain errors on destructors due to CUDA Deinitialization | [
{
"change_type": "MODIFY",
"old_path": "include/occa/defines/errors.hpp",
"new_path": "include/occa/defines/errors.hpp",
"diff": "#define OCCA_CUDA_ERROR2(expr, filename, function, line, message) OCCA_CUDA_ERROR3(expr, filename, function, line, message)\n#define OCCA_CUDA_ERROR(message, expr) OCCA_C... | C++ | MIT License | libocca/occa | [CUDA] Removes certain errors on destructors due to CUDA Deinitialization (#390) |
378,358 | 24.07.2020 02:00:58 | -7,200 | f8eb8344aff8ce43aadf8df9acc3d63eec8fb3ef | Fix - use current stream instead of 0 | [
{
"change_type": "MODIFY",
"old_path": "src/modes/cuda/device.cpp",
"new_path": "src/modes/cuda/device.cpp",
"diff": "@@ -147,7 +147,7 @@ namespace occa {\ncuEventCreate(&cuEvent,\nCU_EVENT_DEFAULT));\nOCCA_CUDA_ERROR(\"Device: Tagging Stream\",\n- cuEventRecord(cuEvent, 0));\n+ cuEventRecord(cuEven... | C++ | MIT License | libocca/occa | Fix #378 - use current stream instead of 0 (#391) |
378,347 | 05.08.2020 05:15:11 | 0 | 793a2a8fcc031f4e2b0ed6c21d08c0b5f8f95590 | on powerpc (e.g. lassen) -march is not a valid flag of gcc, use -mcpu and -mtune instead there | [
{
"change_type": "MODIFY",
"old_path": "include/occa/scripts/shellTools.sh",
"new_path": "include/occa/scripts/shellTools.sh",
"diff": "@@ -224,6 +224,7 @@ function compilerVendor {\nlocal b_HP=6\nlocal b_VisualStudio=7\nlocal b_Cray=8\n+ local b_PPC=9\nlocal testFilename=\"${SCRIPTS_DIR}/tests/comp... | C++ | MIT License | libocca/occa | on powerpc (e.g. lassen) -march is not a valid flag of gcc, use -mcpu and -mtune instead there (#392)
Co-authored-by: Lukas Manuel Sebastian Spies <spies2@lassen709.coral.llnl.gov> |
378,350 | 15.08.2020 14:10:47 | 21,600 | 4292cfcfe2eb358b97b78dbebb901636a482c99f | Sys - add PPC for compiler flag detection | [
{
"change_type": "MODIFY",
"old_path": "include/occa/tools/sys.hpp",
"new_path": "include/occa/tools/sys.hpp",
"diff": "@@ -26,7 +26,8 @@ namespace occa {\nstatic const int b_HP = 6;\nstatic const int b_VisualStudio = 7;\nstatic const int b_Cray = 8;\n- static const int b_max = 9;\n+ static const in... | C++ | MIT License | libocca/occa | Sys - add PPC for compiler flag detection (#395) |
378,350 | 17.08.2020 12:49:42 | 21,600 | 56eb9eaefb461e9a66064b1e04f532f8614ac086 | OpenMP - add base compiler flag for OpenMP on PPC with GCC | [
{
"change_type": "MODIFY",
"old_path": "src/modes/openmp/utils.cpp",
"new_path": "src/modes/openmp/utils.cpp",
"diff": "@@ -10,6 +10,7 @@ namespace occa {\nstd::string baseCompilerFlag(const int vendor_) {\nif (vendor_ & (sys::vendor::GNU |\n+ sys::vendor::PPC |\nsys::vendor::LLVM)) {\nreturn \"-fop... | C++ | MIT License | libocca/occa | OpenMP - add base compiler flag for OpenMP on PPC with GCC (#398) |
378,349 | 09.09.2020 23:35:45 | 14,400 | c8a587666a23e045f25dc871c3257364a5f6a7d5 | [CUDA] Sets the CUDA context in more methods | [
{
"change_type": "MODIFY",
"old_path": "include/occa/modes/cuda/device.hpp",
"new_path": "include/occa/modes/cuda/device.hpp",
"diff": "@@ -42,6 +42,8 @@ namespace occa {\nvoid* getNullPtr();\n+ void setCudaContext();\n+\n//---[ Stream ]-------------------\nvirtual modeStream_t* createStream(const o... | C++ | MIT License | libocca/occa | [CUDA] Sets the CUDA context in more methods (#400) |
378,341 | 22.10.2020 15:40:53 | -7,200 | 3a7ee3610e335dd28af53cc803a113e0744d7ddf | [CMake] Fix intermittent errors when building Fortran examples/tests
* [Git] Fix .gitignore for build/opt if they are symlinks
* [CMake] Fix possible file conflict while building Fortran tests / examples
This caused intermittent problems in GNU builds in particular.
See also | [
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": "lib/\nobj/\nmain\n-opt/\n+opt\n# CMake\n-build/\n+build\n# Bin\nbin/\n"
},
{
"change_type": "MODIFY",
"old_path": "examples/CMakeLists.txt",
"new_path": "examples/CMakeLists.txt",
"diff": "@@ ... | C++ | MIT License | libocca/occa | [CMake] Fix intermittent errors when building Fortran examples/tests (#405)
* [Git] Fix .gitignore for build/opt if they are symlinks
* [CMake] Fix possible file conflict while building Fortran tests / examples
This caused intermittent problems in GNU builds in particular.
See also https://gitlab.kitware.com/cmake/cmake/-/issues/17525 |
378,349 | 24.10.2020 14:36:13 | 14,400 | de41ca93d518429ed7866246600b14c9ca2d9aa1 | [Lang][Expr] Adds expr: expression builder helper | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/expr.hpp",
"new_path": "include/occa/lang/expr.hpp",
"diff": "// Helper methods\n#include <occa/lang/expr/expressionParser.hpp>\n+#include <occa/lang/expr/expr.hpp>\n#endif\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_... | C++ | MIT License | libocca/occa | [Lang][Expr] Adds expr: expression builder helper (#407) |
378,349 | 24.10.2020 17:26:17 | 14,400 | 41ee6c7a78b740bc2e5dc5c1ba1167a9a68d281f | [Lang][Preprocessor] Adds okl/strict_headers option | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/preprocessor.hpp",
"new_path": "include/occa/lang/preprocessor.hpp",
"diff": "@@ -42,6 +42,10 @@ namespace occa {\ntypedef void (preprocessor_t::*processDirective_t)(identifierToken &directive);\ntypedef std::map<std::string, processDirective... | C++ | MIT License | libocca/occa | [Lang][Preprocessor] Adds okl/strict_headers option (#408) |
378,349 | 24.10.2020 18:39:15 | 14,400 | 9306a7917cf01e5160c01743d441ee51216341d1 | [Lang] Adds source code statement | [
{
"change_type": "MODIFY",
"old_path": "bin/occa.cpp",
"new_path": "bin/occa.cpp",
"diff": "@@ -148,8 +148,9 @@ bool runTranslate(const json &args) {\n}\nproperties kernelProps = getOptionProperties(options[\"kernel-props\"]);\n- kernelProps[\"okl/include_paths\"] = options[\"include-path\"];\n+ ker... | C++ | MIT License | libocca/occa | [Lang] Adds source code statement (#409) |
378,341 | 30.10.2020 04:20:57 | -3,600 | f564ad343f899d458b53722a8b53dab908432cb0 | [CLI] Report OCCA_MPI_ENABLED | [
{
"change_type": "MODIFY",
"old_path": "src/bin/occa.cpp",
"new_path": "src/bin/occa.cpp",
"diff": "@@ -249,6 +249,7 @@ namespace occa {\n<< \" - OCCA_HIP_ENABLED : \" << envEcho(\"OCCA_HIP_ENABLED\", OCCA_HIP_ENABLED) << \"\\n\"\n<< \" - OCCA_OPENCL_ENABLED : \" << envEcho(\"OCCA_OPENCL_ENABLED\", ... | C++ | MIT License | libocca/occa | [CLI] Report OCCA_MPI_ENABLED (#412) |
378,341 | 30.10.2020 04:21:50 | -3,600 | 02b2986348c7c0232110cd68445ef3c0252152cb | [Fix] shadowing warnings | [
{
"change_type": "MODIFY",
"old_path": "src/lang/expr/expressionParser.cpp",
"new_path": "src/lang/expr/expressionParser.cpp",
"diff": "@@ -171,8 +171,8 @@ namespace occa {\nfreeTokenVector(tokens);\n}\n- exprNode* expressionParser::parse(tokenVector &tokens) {\n- expressionParser parser(tokens);\n+... | C++ | MIT License | libocca/occa | [Fix] shadowing warnings (#414) |
378,349 | 30.10.2020 00:29:29 | 14,400 | b606b91766f12d244dd5eb03efb5ca195e9f3202 | [Lang] Adds support for U/L/LL suffix on hex/binary primitives | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/primitive.hpp",
"new_path": "include/occa/lang/primitive.hpp",
"diff": "@@ -53,6 +53,7 @@ namespace occa {\nclass primitive {\npublic:\nint type;\n+ std::string source;\nunion {\nbool bool_;\n@@ -79,12 +80,14 @@ namespace occa {\n}\ninline pr... | C++ | MIT License | libocca/occa | [Lang] Adds support for U/L/LL suffix on hex/binary primitives (#416) |
378,349 | 30.10.2020 23:53:48 | 14,400 | 3eb4fe25bcff55a2f336d9df5ffb92d4270ec9ca | [Lang] Add initialization | [
{
"change_type": "MODIFY",
"old_path": "src/lang/modes/serial.cpp",
"new_path": "src/lang/modes/serial.cpp",
"diff": "@@ -193,19 +193,27 @@ namespace occa {\nstatementArray::from(root)\n.flatFilterByStatementType(statementType::for_, \"inner\")\n.forEach([&](statement_t *smnt) {\n- const statementAr... | C++ | MIT License | libocca/occa | [Lang] Add @.exclusive initialization (#417) |
378,349 | 01.11.2020 11:11:18 | 18,000 | a6c68ffb065f4553ad75b14a1a10c94f844b58b3 | [CLI] Does proper file completion | [
{
"change_type": "MODIFY",
"old_path": "src/tools/cli.cpp",
"new_path": "src/tools/cli.cpp",
"diff": "@@ -828,12 +828,11 @@ namespace occa {\n<< \" local suggestions=$(\" << fullBashCommand << \" -- \\\"${COMP_WORDS[@]}\\\")\" << std::endl\n<< \" case \\\"${suggestions}\\\" in\" << std::endl\n<< \" ... | C++ | MIT License | libocca/occa | [CLI] Does proper file completion (#419) |
378,349 | 08.11.2020 11:31:59 | 18,000 | 4cc784e86459c01c8821da0a02eea3ad4fb36ef5 | [QOL] Adds occa::env::setOccaCacheDir | [
{
"change_type": "MODIFY",
"old_path": "include/occa/tools/env.hpp",
"new_path": "include/occa/tools/env.hpp",
"diff": "@@ -34,6 +34,8 @@ namespace occa {\nreturn fromString<TM>(value);\n}\n+ void setOccaCacheDir(const std::string &path);\n+\nclass envInitializer_t {\npublic:\nenvInitializer_t();\n@... | C++ | MIT License | libocca/occa | [QOL] Adds occa::env::setOccaCacheDir (#420) |
378,348 | 09.11.2020 21:46:59 | 21,600 | c0931e5dfb6a5cef280caba312eab8850d751683 | Make build system understand new hipconfig output
From ROCm 4.0, hipconfig --platform will output 'amd' instead of 'hcc'.
This change simply proactively mitigates a potential surprise where OCCA
thinks it couldn't find ROCm. | [
{
"change_type": "MODIFY",
"old_path": "scripts/Makefile",
"new_path": "scripts/Makefile",
"diff": "@@ -338,7 +338,7 @@ ifdef OCCA_HIP_ENABLED\nifeq ($(hipPlatform),nvcc)\nlinkerFlags += -lcuda\nlinkerFlags += -lcudart\n- else ifeq ($(hipPlatform),hcc)\n+ else ifeq ($(hipPlatform),$(filter $(hipPlat... | C++ | MIT License | libocca/occa | Make build system understand new hipconfig output (#421)
From ROCm 4.0, hipconfig --platform will output 'amd' instead of 'hcc'.
This change simply proactively mitigates a potential surprise where OCCA
thinks it couldn't find ROCm. |
378,355 | 28.12.2020 13:26:47 | 21,600 | 246d25df0310b99d20d9792779dd41f33bf595d2 | [CMake] Enable use of CMake in github actions .yml (continued from libocca/occa#342) | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build.yml",
"new_path": ".github/workflows/build.yml",
"diff": "@@ -21,6 +21,15 @@ jobs:\nOCCA_COVERAGE: 1\nOCCA_FORTRAN_ENABLED: 1\n+ - name: (Ubuntu) CMake + gcc-8\n+ os: ubuntu-18.04\n+ CC: gcc-8\n+ CXX: g++-8\n+ CXXFLAGS: -Wno-maybe-unini... | C++ | MIT License | libocca/occa | [CMake] Enable use of CMake in github actions .yml (continued from libocca/occa#342) (#425) |
378,355 | 28.12.2020 13:27:21 | 21,600 | 902b0a9bac363f4efe81cb3e7a271da48ec5a863 | [HIP] Avoid checking the error code from hipGetDeviceCount | [
{
"change_type": "MODIFY",
"old_path": "src/modes/hip/utils.cpp",
"new_path": "src/modes/hip/utils.cpp",
"diff": "@@ -18,9 +18,8 @@ namespace occa {\n}\nint getDeviceCount() {\n- int deviceCount;\n- OCCA_HIP_ERROR(\"Finding Number of Devices\",\n- hipGetDeviceCount(&deviceCount));\n+ int deviceCount... | C++ | MIT License | libocca/occa | [HIP] Avoid checking the error code from hipGetDeviceCount (#426) |
378,355 | 28.12.2020 13:29:15 | 21,600 | 5c721e64b69bda47f4f6914d43341ba81d292131 | [Modes] Adding a getDeviceCount API to query number of available devices in an enabled mode | [
{
"change_type": "MODIFY",
"old_path": "include/occa/modes.hpp",
"new_path": "include/occa/modes.hpp",
"diff": "@@ -31,6 +31,8 @@ namespace occa {\nvirtual styling::section &getDescription();\nvirtual modeDevice_t* newDevice(const occa::properties &props) = 0;\n+\n+ virtual int getDeviceCount(const ... | C++ | MIT License | libocca/occa | [Modes] Adding a getDeviceCount API to query number of available devices in an enabled mode (#427) |
378,349 | 28.12.2020 15:21:02 | 18,000 | ebc9e65399bbea50f292d5301adb74bc93cab929 | Avoids kernel calls on noop dim sizes | [
{
"change_type": "MODIFY",
"old_path": "include/occa/core/kernel.hpp",
"new_path": "include/occa/core/kernel.hpp",
"diff": "@@ -70,6 +70,8 @@ namespace occa {\nvoid setupRun();\n+ bool isNoop() const;\n+\n//---[ Virtual Methods ]------------\nvirtual ~modeKernel_t() = 0;\n"
},
{
"change_type... | C++ | MIT License | libocca/occa | [#396] Avoids kernel calls on noop dim sizes (#431) |
378,355 | 30.12.2020 14:39:46 | 21,600 | 9cb237c3099000f9388ec231430501d5a9681621 | [Lang] Add barriers only after last inner block in each kernel, skipping last inner block | [
{
"change_type": "MODIFY",
"old_path": "include/occa/lang/modes/withLauncher.hpp",
"new_path": "include/occa/lang/modes/withLauncher.hpp",
"diff": "@@ -42,6 +42,10 @@ namespace occa {\nbool isOuterMostOklLoop(forStatement &forSmnt,\nconst std::string &attr);\n+ bool isLastInnerLoop(forStatement &for... | C++ | MIT License | libocca/occa | [Lang] Add barriers only after last inner block in each kernel, skipping last inner block (#424) |
378,349 | 01.01.2021 02:14:48 | 18,000 | d992693849c65aa0e9f4e49e2b63d09d9a75a53d | Happy New Years! | [
{
"change_type": "MODIFY",
"old_path": "LICENSE",
"new_path": "LICENSE",
"diff": "The MIT License (MIT)\n-Copyright (c) 2014-2019 David Medina and Tim Warburton\n+Copyright (c) 2014-2021 David Medina and Tim Warburton\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof ... | C++ | MIT License | libocca/occa | Happy New Years! |
378,349 | 01.01.2021 22:42:21 | 18,000 | d23f05d8b15c1af1c53272180facd65ace26df0c | [Refactor] Move modeIsEnabled back to public API | [
{
"change_type": "MODIFY",
"old_path": "include/occa/core/base.hpp",
"new_path": "include/occa/core/base.hpp",
"diff": "@@ -146,6 +146,8 @@ namespace occa {\n//====================================\n//---[ Helper Methods ]---------------\n+ bool modeIsEnabled(const std::string &mode);\n+\nint getDevi... | C++ | MIT License | libocca/occa | [Refactor] Move modeIsEnabled back to public API (#436) |
378,349 | 01.01.2021 23:36:02 | 18,000 | c596688eba56dc2c6c45aae04128be260fedc7c0 | [HIP] Update ptr ref hackery | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/hip/memory.cpp",
"new_path": "src/occa/internal/modes/hip/memory.cpp",
"diff": "@@ -12,11 +12,7 @@ namespace occa {\nudim_t size_,\nconst occa::properties &properties_) :\nocca::modeMemory_t(modeDevice_, size_, properties_),\n-#ifdef __... | C++ | MIT License | libocca/occa | [HIP] Update ptr ref hackery (#437) |
378,349 | 03.01.2021 10:46:14 | 18,000 | 3acf80649566b494d16dd8213977ef603c9c51d0 | [Refactor] Moved some io methods to public API | [
{
"change_type": "MODIFY",
"old_path": "include/occa/utils.hpp",
"new_path": "include/occa/utils.hpp",
"diff": "#include <occa/utils/env.hpp>\n#include <occa/utils/exception.hpp>\n#include <occa/utils/hash.hpp>\n+#include <occa/utils/io.hpp>\n#include <occa/utils/logging.hpp>\n#include <occa/utils/u... | C++ | MIT License | libocca/occa | [Refactor] Moved some io methods to public API (#440) |
378,349 | 04.01.2021 00:59:31 | 18,000 | a5e852f5beb39d7a5f16d3cd477d80eba87d4077 | [Fix][JSON] Add explicit bool casting for {} json initializer | [
{
"change_type": "MODIFY",
"old_path": "include/occa/types/json.hpp",
"new_path": "include/occa/types/json.hpp",
"diff": "@@ -590,6 +590,39 @@ namespace occa {\nstd::string name;\njson value;\n+ jsonKeyValue(const std::string &name_,\n+ const bool value_);\n+\n+ jsonKeyValue(const std::string &name_... | C++ | MIT License | libocca/occa | [Fix][JSON] Add explicit bool casting for {} json initializer (#444) |
378,341 | 04.01.2021 16:51:27 | -3,600 | 93318e38c8e15359d41da64919c346dc373d0cf4 | [Fix] Use correct new path for expermental mpi.hpp | [
{
"change_type": "MODIFY",
"old_path": "examples/cpp/10_mpi/main.cpp",
"new_path": "examples/cpp/10_mpi/main.cpp",
"diff": "#include <iostream>\n#include <occa.hpp>\n-#include <occa/mpi.hpp>\n+#include <occa/experimental/mpi.hpp>\n#if OCCA_MPI_ENABLED\n"
},
{
"change_type": "MODIFY",
"ol... | C++ | MIT License | libocca/occa | [Fix] Use correct new path for expermental mpi.hpp (#445) |
378,341 | 04.01.2021 16:58:34 | -3,600 | adabffc0a8aa877226f9987cfe63999194ccd85a | [Fix] Add exception for one Fortran test that doesn't fit the standard CMake functions | [
{
"change_type": "MODIFY",
"old_path": "tests/CMakeLists.txt",
"new_path": "tests/CMakeLists.txt",
"diff": "@@ -21,6 +21,10 @@ function(add_occa_test test_source)\ntarget_include_directories(${cmake_test_target} PRIVATE\n$<BUILD_INTERFACE:${OCCA_SOURCE_DIR}/src>)\n+ if (${test_source} MATCHES \"type... | C++ | MIT License | libocca/occa | [Fix] Add exception for one Fortran test that doesn't fit the standard CMake functions (#446) |
378,349 | 05.01.2021 20:28:00 | 18,000 | cc9bd4fb1d66d6a377f7f9683eb7b38ffd3cae00 | [HIP] Fix the way hip sets arguments, I broke it on | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/hip/kernel.cpp",
"new_path": "src/occa/internal/modes/hip/kernel.cpp",
"diff": "@@ -85,7 +85,7 @@ namespace occa {\npadding = 0;\n}\n- ::memcpy(dataPtr, arg.ptr(), bytes);\n+ ::memcpy(dataPtr, &arg.value.value.int64_, bytes);\ndataPtr +... | C++ | MIT License | libocca/occa | [HIP] Fix the way hip sets arguments, I broke it on #438 (#448) |
378,355 | 06.01.2021 15:32:07 | 21,600 | 8adddfc3d2391bd418c963b128f8616315e50392 | [Core] Make getDeviceCount syntax match new device::setup syntax | [
{
"change_type": "MODIFY",
"old_path": "include/occa/core/base.hpp",
"new_path": "include/occa/core/base.hpp",
"diff": "@@ -148,6 +148,7 @@ namespace occa {\n//---[ Helper Methods ]---------------\nbool modeIsEnabled(const std::string &mode);\n+ int getDeviceCount(const std::string &props);\nint get... | C++ | MIT License | libocca/occa | [Core] Make getDeviceCount syntax match new device::setup syntax (#452) |
378,349 | 06.01.2021 18:37:27 | 18,000 | a13bb894654abcbf28d000bde8344f740eeab7c8 | [#450][IO] Don't cache the cache path | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/io/utils.cpp",
"new_path": "src/occa/internal/io/utils.cpp",
"diff": "@@ -51,20 +51,12 @@ namespace occa {\nstatic const unsigned char DT_DIR = 'd';\n#endif\n- const std::string& cachePath() {\n- static std::string path;\n- if (path.size() ==... | C++ | MIT License | libocca/occa | [#450][IO] Don't cache the cache path (#453) |
378,349 | 06.01.2021 18:54:16 | 18,000 | a8cbb2d52373ed540be675a61f715a5ce6f5fd9f | [OpenCL] Define CL_TARGET_OPENCL_VERSION | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/opencl/polyfill.hpp",
"new_path": "src/occa/internal/modes/opencl/polyfill.hpp",
"diff": "#if OCCA_OPENCL_ENABLED\n+// Remove warnings due to CL_TARGET_OPENCL_VERSION not being set\n+# ifndef CL_TARGET_OPENCL_VERSION\n+# define CL_TARGE... | C++ | MIT License | libocca/occa | [OpenCL] Define CL_TARGET_OPENCL_VERSION (#454) |
378,349 | 06.01.2021 19:34:32 | 18,000 | addc6bc3048bf42fd7fe935f85bb518451a6dd56 | [CUDA] Always use the primary context | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/cuda/device.cpp",
"new_path": "src/occa/internal/modes/cuda/device.cpp",
"diff": "@@ -30,7 +30,7 @@ namespace occa {\ncuDeviceGet(&cuDevice, deviceID));\nOCCA_CUDA_ERROR(\"Device: Creating Context\",\n- cuCtxCreate(&cuContext, CU_CTX_SC... | C++ | MIT License | libocca/occa | [CUDA] Always use the primary context (#455) |
378,355 | 12.01.2021 18:46:00 | 21,600 | 704350435e6e449e45b28d325cb328b07f0b4653 | [Lang] Adding missing if statment condition to inner statement array | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/lang/statement/ifStatement.cpp",
"new_path": "src/occa/internal/lang/statement/ifStatement.cpp",
"diff": "@@ -69,6 +69,9 @@ namespace occa {\nstatementArray ifStatement::getInnerStatements() {\nstatementArray arr;\n+ if (condition) {\n+ arr.p... | C++ | MIT License | libocca/occa | [Lang] Adding missing if statment condition to inner statement array (#456) |
378,355 | 12.01.2021 18:47:41 | 21,600 | f89f13908703507120c2c0d5f4a43a62a7e34bc2 | [OpenCL] Avoid checking the error code in getDeviceCountInPlatform | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/opencl/utils.cpp",
"new_path": "src/occa/internal/modes/opencl/utils.cpp",
"diff": "@@ -95,16 +95,13 @@ namespace occa {\n}\nint getDeviceCountInPlatform(int pID, int type) {\n- cl_uint dCount;\n-\ncl_platform_id clPID = platformID(pID)... | C++ | MIT License | libocca/occa | [OpenCL] Avoid checking the error code in getDeviceCountInPlatform (#457) |
378,348 | 12.01.2021 18:55:11 | 21,600 | 483de1641e3b9140ecff02353a9a8aee1ec51239 | [HIP] Use arch name property to determine gpu arch | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/hip/polyfill.hpp",
"new_path": "src/occa/internal/modes/hip/polyfill.hpp",
"diff": "@@ -37,6 +37,7 @@ namespace occa {\nsize_t totalGlobalMem;\nint maxThreadsPerBlock;\nint gcnArch;\n+ char gcnArchName[256];\nint major;\nint minor;\n"
... | C++ | MIT License | libocca/occa | [HIP] Use arch name property to determine gpu arch (#429) |
378,349 | 17.01.2021 14:17:41 | 18,000 | 6e7a38faacb3146034fad4349dc244d9e83b9b27 | [Array] Adds dotProduct and clamp | [
{
"change_type": "MODIFY",
"old_path": "include/occa/functional/array.hpp",
"new_path": "include/occa/functional/array.hpp",
"diff": "@@ -888,6 +888,15 @@ namespace occa {\n}\n//==================================\n+ //---[ Utility methods ]------------\n+ TM operator [] (const dim_t index) const {\n... | C++ | MIT License | libocca/occa | [Array] Adds dotProduct and clamp (#458) |
378,349 | 18.01.2021 16:58:55 | 18,000 | eb2be149ee99aba105f73b133c3286bb327134ec | [C] Adds occaKernelRunWithArgs | [
{
"change_type": "MODIFY",
"old_path": "include/occa/c/kernel.h",
"new_path": "include/occa/c/kernel.h",
"diff": "@@ -51,6 +51,10 @@ void occaKernelVaRun(occaKernel kernel,\nconst int argc,\nva_list args);\n+void occaKernelRunWithArgs(occaKernel kernel,\n+ const int argc,\n+ occaType *args);\n+\nOCC... | C++ | MIT License | libocca/occa | [C] Adds occaKernelRunWithArgs (#459) |
378,341 | 20.01.2021 18:20:14 | -3,600 | 4ea8f4c532701f3c2f738ad171ccbf3fe5d989ee | [Fix] Kernel header defines can be things other than strings | [
{
"change_type": "MODIFY",
"old_path": "src/core/kernel.cpp",
"new_path": "src/core/kernel.cpp",
"diff": "@@ -222,7 +222,8 @@ namespace occa {\n// Add defines\nfor (const auto &entry : props[\"defines\"].object()) {\n- if (entry.second.isString()) {\n+ if (entry.second.isString() || entry.second.isN... | C++ | MIT License | libocca/occa | [Fix] Kernel header defines can be things other than strings (#466) |
378,341 | 20.01.2021 18:55:34 | -3,600 | 78292d416697c9aab4b7534f2d55fe5199ce07ec | [Fix] Shadowing warnings in functionDefinition.cpp | [
{
"change_type": "MODIFY",
"old_path": "src/functional/functionDefinition.cpp",
"new_path": "src/functional/functionDefinition.cpp",
"diff": "@@ -37,51 +37,51 @@ namespace occa {\nreturn ss.str();\n}\n- hash_t functionDefinition::getHash(const occa::scope &scope,\n- const std::string &source,\n- con... | C++ | MIT License | libocca/occa | [Fix] Shadowing warnings in functionDefinition.cpp (#468) |
378,349 | 20.01.2021 18:42:47 | 18,000 | 98b856c64c61bbdbe617966b5b2997046c57464d | [Examples] Fix out-of-bounds access | [
{
"change_type": "MODIFY",
"old_path": "examples/cpp/05_arrays/main.cpp",
"new_path": "examples/cpp/05_arrays/main.cpp",
"diff": "@@ -30,8 +30,8 @@ int main(int argc, const char **argv) {\n}\n// Uses the background device\n- occa::array<float> array_a(10);\n- occa::array<float> array_b(10);\n+ occa:... | C++ | MIT License | libocca/occa | [Examples] Fix out-of-bounds access (#469) |
378,349 | 23.01.2021 10:54:02 | 18,000 | 3f995b7cfe88b78f687d04bbe47a732c1e52c446 | [Fix][#471] Fixes weird Intel compiler bug | [
{
"change_type": "MODIFY",
"old_path": "include/occa/functional/array.hpp",
"new_path": "include/occa/functional/array.hpp",
"diff": "@@ -450,10 +450,8 @@ namespace occa {\nreturn clone();\n}\n- const int size = (int) length();\n-\nocca::scope fnScope({\n- {\"size\", size},\n+ {\"size\", (int) lengt... | C++ | MIT License | libocca/occa | [Fix][#471] Fixes weird Intel compiler bug (#472) |
378,349 | 23.01.2021 14:55:25 | 18,000 | 0e1ffe8a1c0532cacf71b60c31656ff191ad7c6a | [Doc] Update README example | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -62,8 +62,7 @@ occa::scope scope({\nocca::forLoop()\n.tile({entries, 16})\n- .run(OCCA_FUNCTION(scope, [=](const int outerIndex, const int innerIndex) -> void {\n- const int i = innerIndex + (2 * outerIndex);\n+... | C++ | MIT License | libocca/occa | [Doc] Update README example |
378,341 | 28.01.2021 03:48:37 | -3,600 | c21fabd5e7f791c1a2068fc5592ab0703a7be36f | [Fortran] Generate fixed arity interface | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "include/occa/c/kernel_fortran_interface.h",
"diff": "+// --------------[ DO NOT EDIT ]--------------\n+// THIS IS AN AUTOMATICALLY GENERATED FILE\n+// EDIT:\n+// scripts/codegen/create_fortran_kernel_interface.py\n+// ===========================... | C++ | MIT License | libocca/occa | [Fortran] Generate fixed arity interface (#477) |
378,355 | 12.03.2021 00:45:29 | 21,600 | aa6ee009adc0214ed214642a74b2e8235261b169 | [HIP] Removing use of __HIP_ROCclr__ since it is marked as deprecated. Using more stable HIP_VERSION check | [
{
"change_type": "MODIFY",
"old_path": "cmake/FindHIP.cmake",
"new_path": "cmake/FindHIP.cmake",
"diff": "@@ -108,7 +108,7 @@ if(UNIX AND NOT APPLE AND NOT CYGWIN)\nelseif(${HIP_COMPILER} STREQUAL \"clang\")\nset(HIP_INCLUDE_DIRS \"${HIP_ROOT_DIR}/include\")\nset(HIP_LIBRARIES \"${HIP_ROOT_DIR}/lib/... | C++ | MIT License | libocca/occa | [HIP] Removing use of __HIP_ROCclr__ since it is marked as deprecated. Using more stable HIP_VERSION check (#486) |
378,341 | 12.03.2021 07:45:44 | -3,600 | 9923f46799461f5acf154cfd8358043ef9f449c5 | Attempt to make kernelProperties / compilers more consistent
Compiler flags etc are no longer setup on the device, but only when
building the kernel (using the same defaults as before).
It handles situations where some kernels are C and others are C++
and applies the correct flags/compilers for both cases. | [
{
"change_type": "MODIFY",
"old_path": "examples/cpp/11_native_c_kernels/main.cpp",
"new_path": "examples/cpp/11_native_c_kernels/main.cpp",
"diff": "@@ -28,7 +28,6 @@ int main(int argc, const char **argv) {\nocca::device device({\n{\"mode\", \"Serial\"},\n- {\"kernel/compiler\", \"gcc\"},\n// Defau... | C++ | MIT License | libocca/occa | Attempt to make kernelProperties / compilers more consistent (#483)
Compiler flags etc are no longer setup on the device, but only when
building the kernel (using the same defaults as before).
It handles situations where some kernels are C and others are C++
and applies the correct flags/compilers for both cases. |
378,349 | 12.04.2021 01:54:33 | 14,400 | c42d2fd6ac8010cf31dbc325b0457fbe889a8e72 | [#487][Lang] Missed checking iterator for-loop statement | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build.yml",
"new_path": ".github/workflows/build.yml",
"diff": "@@ -11,59 +11,49 @@ jobs:\nstrategy:\nmatrix:\ninclude:\n- - name: (Ubuntu) gcc-8\n- os: ubuntu-18.04\n- CC: gcc-8\n- CXX: g++-8\n+ - name: \"[Ubuntu] gcc-9\"\n+ os: ubuntu-lates... | C++ | MIT License | libocca/occa | [#487][Lang] Missed checking iterator for-loop statement (#492) |
378,341 | 01.09.2021 20:54:21 | -7,200 | 327582bfb6667defb008d743961fa38053960214 | [Tests] Update GitHub build
ubuntu-latest has moved beyond 20210517.1, from which point
clang-9 is no longer included - 10/11/12 are available.
Drop clang 9, use clang 11 instead. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build.yml",
"new_path": ".github/workflows/build.yml",
"diff": "@@ -30,17 +30,17 @@ jobs:\nOCCA_COVERAGE: 1\nuseCMake: true\n- - name: \"[Ubuntu] clang-10\"\n+ - name: \"[Ubuntu] clang-11\"\nos: ubuntu-latest\n- CC: clang-10\n- CXX: clang++-1... | C++ | MIT License | libocca/occa | [Tests] Update GitHub build (#499)
ubuntu-latest has moved beyond 20210517.1, from which point
clang-9 is no longer included - 10/11/12 are available.
Drop clang 9, use clang 11 instead. |
378,349 | 05.09.2021 20:02:10 | 14,400 | 8a82df1157ccb18d6fda9bd9e8940a51d8b939d2 | Print compilation error | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/cuda/device.cpp",
"new_path": "src/occa/internal/modes/cuda/device.cpp",
"diff": "@@ -326,22 +326,28 @@ namespace occa {\n<< \" -I\" << env::OCCA_INSTALL_DIR << \"include\"\n<< \" -L\" << env::OCCA_INSTALL_DIR << \"lib -locca\"\n<< \" -... | C++ | MIT License | libocca/occa | [#188] Print compilation error (#503) |
378,341 | 07.09.2021 21:20:38 | -7,200 | d4f01fe126f76a4ec8b0f7e59954d4e283d4abbc | [OpenMP] Fix conflict with re-used stringstream in closure
Previously this used the 'ss' stringstream both inside the closure and outside,
resulting in the first element of the compiler invocation (i.e. the compiler executable)
sometimes ending up in flag, instead of the actual OpenMP flag. | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/openmp/utils.cpp",
"new_path": "src/occa/internal/modes/openmp/utils.cpp",
"diff": "@@ -54,17 +54,18 @@ namespace occa {\n[&](const strVector &tempFilenames) -> bool {\nconst std::string &tempBinaryFilename = tempFilenames[0];\nconst st... | C++ | MIT License | libocca/occa | [OpenMP] Fix conflict with re-used stringstream in closure (#510)
Previously this used the 'ss' stringstream both inside the closure and outside,
resulting in the first element of the compiler invocation (i.e. the compiler executable)
sometimes ending up in flag, instead of the actual OpenMP flag. |
378,341 | 08.09.2021 03:25:52 | -7,200 | e39975c1947973dfd334904e6ca38fcd1c7c9a6a | [Internal] Fix another conflict with re-used stringstream in closure | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/utils/sys.cpp",
"new_path": "src/occa/internal/utils/sys.cpp",
"diff": "@@ -742,13 +742,14 @@ namespace occa {\n[&](const strVector &tempFilenames) -> bool {\nconst std::string &tempBinaryFilename = tempFilenames[0];\nconst std::string &tempB... | C++ | MIT License | libocca/occa | [Internal] Fix another conflict with re-used stringstream in closure (#511) |
378,351 | 13.09.2021 00:20:53 | 18,000 | 6bf93489243b44c2342222d81c62f535abbffb03 | [Bugfix][DPCPP] Use correct binary filename when compiling DPC++ kernels. | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/dpcpp/device.cpp",
"new_path": "src/occa/internal/modes/dpcpp/device.cpp",
"diff": "@@ -130,6 +130,8 @@ namespace occa\n{\ncompileKernel(hashDir,\nkernelName,\n+ sourceFilename,\n+ binaryFilename,\nkernelProps);\nif (usingOkl)\n@@ -163,... | C++ | MIT License | libocca/occa | [Bugfix][DPCPP] Use correct binary filename when compiling DPC++ kernels. (#513) |
378,342 | 13.09.2021 12:17:01 | 18,000 | 5028b14eb6448f6264bcc12b9d05f9eaab827606 | Avoid using strncmp in occa::primitive::load whenever the string is too short. | [
{
"change_type": "MODIFY",
"old_path": "src/types/primitive.cpp",
"new_path": "src/types/primitive.cpp",
"diff": "@@ -29,6 +29,9 @@ namespace occa {\nconst char *c0 = c;\nprimitive p;\n+ const int cLength = strlen(c);\n+\n+ if(cLength >= 4){\nif (strncmp(c, \"true\", 4) == 0) {\np = true;\np.source ... | C++ | MIT License | libocca/occa | (#495) Avoid using strncmp in occa::primitive::load whenever the string is too short. (#496) |
378,351 | 17.09.2021 22:15:07 | 18,000 | 9fc908fa7d7ce2d1b9f7cba80a804ae73c29b368 | [Bugfix][OpenCL] Update opencl timing to give meaningful results. | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/modes/opencl/device.cpp",
"new_path": "src/occa/internal/modes/opencl/device.cpp",
"diff": "@@ -112,11 +112,11 @@ namespace occa {\n#ifdef CL_VERSION_1_2\nOCCA_OPENCL_ERROR(\"Device: Tagging Stream\",\n- clEnqueueMarkerWithWaitList(getCommand... | C++ | MIT License | libocca/occa | [Bugfix][OpenCL] Update opencl timing to give meaningful results. (#518) |
378,351 | 06.10.2021 22:20:20 | 18,000 | 95b7a37e17b27841aefbe0f0bc8e985c76ef5665 | Remove C++17 features from DPC++ headers. | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -19,6 +19,7 @@ if(NOT CMAKE_BUILD_TYPE)\nset(CMAKE_BUILD_TYPE \"Release\" CACHE STRING \"Build type\" FORCE)\nendif()\n+# CMake will decay to a previous C++ standard if a compiler does not support C++1... | C++ | MIT License | libocca/occa | Remove C++17 features from DPC++ headers. (#526) |
378,344 | 22.10.2021 03:52:01 | -7,200 | abeedaf642e0bf3cb8cea420be59a589ddb609bb | Add MPI::MPI_Fortran to link_libraries of fortran mpi example
The example directly uses mpi, without the link compilation will fail on the use mpi statement when using a non-mpi-wrapper compiler | [
{
"change_type": "MODIFY",
"old_path": "examples/CMakeLists.txt",
"new_path": "examples/CMakeLists.txt",
"diff": "@@ -96,7 +96,7 @@ if (ENABLE_FORTRAN)\nmacro(compile_fortran_mpi_example_with_modes target file)\nadd_executable(examples_fortran_${target} ${file})\n- target_link_libraries(examples_for... | C++ | MIT License | libocca/occa | Add MPI::MPI_Fortran to link_libraries of fortran mpi example (#530)
The example directly uses mpi, without the link compilation will fail on the use mpi statement when using a non-mpi-wrapper compiler |
378,341 | 16.11.2021 19:43:23 | -3,600 | 45462a3d62160a82009542ff7806ed86553527f8 | Fix PGI builds (needs newlines at EOF) | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/lang/expr/dpcppAtomicNode.cpp",
"new_path": "src/occa/internal/lang/expr/dpcppAtomicNode.cpp",
"diff": "@@ -76,3 +76,4 @@ namespace occa\n} // namespace lang\n} // namespace occa\n+\n"
},
{
"change_type": "MODIFY",
"old_path": "sr... | C++ | MIT License | libocca/occa | Fix PGI builds (needs newlines at EOF) (#537) |
378,341 | 24.11.2021 18:32:16 | -3,600 | b07ec0bdd0d70c50f0898f050d3705dc4ee5f378 | [Fortran] Use mpi_f08 module to fix Intel compiler warnings
Intel compiler version 19.1.0.20200306 (and above, presumably) complains:
error Explicit declaration of the EXTERNAL attribute is required
This can be solved by using the newer mpi_f08 module and accompanying
newer datatypes. | [
{
"change_type": "MODIFY",
"old_path": "examples/fortran/10_mpi/main.f90",
"new_path": "examples/fortran/10_mpi/main.f90",
"diff": "program main\n- use mpi\n+ use mpi_f08\nuse occa\nuse, intrinsic :: iso_fortran_env, only : stdout=>output_unit, &\nstderr=>error_unit\n@@ -7,9 +7,10 @@ program main\ni... | C++ | MIT License | libocca/occa | [Fortran] Use mpi_f08 module to fix Intel compiler warnings (#539)
Intel compiler version 19.1.0.20200306 (and above, presumably) complains:
error #8889: Explicit declaration of the EXTERNAL attribute is required
This can be solved by using the newer mpi_f08 module and accompanying
newer datatypes. |
378,361 | 06.12.2021 14:43:13 | 21,600 | 5f5ec0f1962b925a538eaae61a0fe3265fb5c2f3 | Add non-blocking stream creation
Add creating a non-blocking stream based on a stream property value "nonblocking"
Current implementation applies to cuda and hip modes only
An example is added to demonstrate the usage | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/cpp/18_nonblocking_streams/.gitignore",
"diff": "+main\n+main.o\n+main_c\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/cpp/18_nonblocking_streams/CMakeLists.txt",
... | C++ | MIT License | libocca/occa | Add non-blocking stream creation (#498)
- Add creating a non-blocking stream based on a stream property value "nonblocking"
- Current implementation applies to cuda and hip modes only
- An example is added to demonstrate the usage |
378,351 | 07.12.2021 10:58:13 | 21,600 | 2abc3e9e8c16c4f48581420852f19a504a9f53b9 | Add the `@nobarrier` attribute to stop barriers from being automatically inserted between `@inner` loop blocks. | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/lang/builtins/attributes.hpp",
"new_path": "src/occa/internal/lang/builtins/attributes.hpp",
"diff": "#include <occa/internal/lang/builtins/attributes/inner.hpp>\n#include <occa/internal/lang/builtins/attributes/kernel.hpp>\n#include <occa/in... | C++ | MIT License | libocca/occa | Add the `@nobarrier` attribute to stop barriers from being automatically inserted between `@inner` loop blocks. (#544) |
378,351 | 15.12.2021 11:55:37 | 21,600 | 7dd3c62ff093d0b9bed5318b44d38ddd9cf7baa4 | Add oneAPI compilers (Intel/LLVM) to testing matrix. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build.yml",
"new_path": ".github/workflows/build.yml",
"diff": "@@ -44,6 +44,17 @@ jobs:\nCXXFLAGS: -Wno-uninitialized\nOCCA_COVERAGE: 0\n+ - name: \"[Ubuntu] CMake + Intel/LLVM\"\n+ os: ubuntu-latest\n+ CC: icx\n+ CXX: icpx\n+ CXXFLAGS: -Wno... | C++ | MIT License | libocca/occa | Add oneAPI compilers (Intel/LLVM) to testing matrix. (#542) |
378,351 | 20.12.2021 13:23:08 | 21,600 | 5945a752273fd68daba79f73098a0de3487fdf19 | Update DPC++ build to handle recent updates to Intel's header files. | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/build.yml",
"new_path": ".github/workflows/build.yml",
"diff": "@@ -130,7 +130,7 @@ jobs:\n-DCMAKE_INSTALL_PREFIX=install \\\n-DENABLE_TESTS=ON \\\n-DENABLE_EXAMPLES=ON \\\n- -DCMAKE_PREFIX_PATH=\"/opt/intel/oneapi/compiler/latest/linux;/opt/... | C++ | MIT License | libocca/occa | Update DPC++ build to handle recent updates to Intel's header files. (#550) |
378,351 | 20.12.2021 14:01:31 | 21,600 | 4ef3c3e9dc270ad5c55b4c3f44f853a3c3764bf7 | Update namespace of local memory allocations. | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/lang/expr/dpcppLocalMemoryNode.cpp",
"new_path": "src/occa/internal/lang/expr/dpcppLocalMemoryNode.cpp",
"diff": "@@ -25,7 +25,7 @@ namespace occa\nvoid dpcppLocalMemoryNode::print(printer &pout) const\n{\n- pout << \"*(sycl::group_local_memo... | C++ | MIT License | libocca/occa | Update namespace of local memory allocations. (#551) |
378,361 | 12.01.2022 17:21:05 | 21,600 | 83b48a6d87a22fb55ae79412206d1dc3b14811fb | Fix cached file path to match with actual the file created when check for its existence | [
{
"change_type": "MODIFY",
"old_path": "src/occa/internal/io/cache.cpp",
"new_path": "src/occa/internal/io/cache.cpp",
"diff": "@@ -88,7 +88,6 @@ namespace occa {\nbool cachedFileIsComplete(const std::string &hashDir,\nconst std::string &filename) {\nstd::string successFile = hashDir;\n- successFile... | C++ | MIT License | libocca/occa | Fix cached file path to match with actual the file created when check for its existence (#554) |
378,351 | 22.02.2022 12:48:55 | 21,600 | 865d2977d7fe8d00289df5918d529c96f81dfbca | Improve test coverage for primitive types. | [
{
"change_type": "MODIFY",
"old_path": "src/types/primitive.cpp",
"new_path": "src/types/primitive.cpp",
"diff": "@@ -249,13 +249,8 @@ namespace occa {\ncase primitiveType::int64_ : str = occa::toString((int64_t) value.int64_); break;\ncase primitiveType::float_ : str = occa::toString(value.float_);... | C++ | MIT License | libocca/occa | Improve test coverage for primitive types. (#545) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.