Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3kdownloads
binding.gyp304 linesDownload Raw Back to src
1# Copyright 2013 Lovell Fuller and others.2# SPDX-License-Identifier: Apache-2.03 4{5  'variables': {6    'vips_version': '<!(node -p "require(\'../dist/libvips.cjs\').minimumLibvipsVersion")',7    'platform_and_arch': '<!(node -p "require(\'../dist/libvips.cjs\').buildPlatformArch()")',8    'sharp_version': '<!(node -p "require(\'../package.json\').version")',9    'sharp_libvips_version': '<!(node -p "require(\'../package.json\').optionalDependencies[\'@img/sharp-libvips-<(platform_and_arch)\']")',10    'sharp_libvips_yarn_locator': '<!(node -p "require(\'../dist/libvips.cjs\').yarnLocator()")',11    'sharp_libvips_include_dir': '<!(node -p "require(\'../dist/libvips.cjs\').buildSharpLibvipsIncludeDir()")',12    'sharp_libvips_cplusplus_dir': '<!(node -p "require(\'../dist/libvips.cjs\').buildSharpLibvipsCPlusPlusDir()")',13    'sharp_libvips_lib_dir': '<!(node -p "require(\'../dist/libvips.cjs\').buildSharpLibvipsLibDir()")'14  },15  'targets': [{16    'target_name': 'libvips-cpp-<(vips_version)',17    'conditions': [18      ['OS == "win"', {19        # Build libvips C++ binding for Windows due to MSVC std library ABI changes20        'type': 'shared_library',21        'defines': [22          '_VIPS_PUBLIC=__declspec(dllexport)',23          '_ALLOW_KEYWORD_MACROS',24          '_HAS_EXCEPTIONS=1',25          'G_DISABLE_ASSERT',26          'G_DISABLE_CAST_CHECKS',27          'G_DISABLE_CHECKS'28        ],29        'sources': [30          '<(sharp_libvips_cplusplus_dir)/VConnection.cpp',31          '<(sharp_libvips_cplusplus_dir)/VError.cpp',32          '<(sharp_libvips_cplusplus_dir)/VImage.cpp',33          '<(sharp_libvips_cplusplus_dir)/VInterpolate.cpp',34          '<(sharp_libvips_cplusplus_dir)/VRegion.cpp'35        ],36        'include_dirs': [37          '<(sharp_libvips_include_dir)',38          '<(sharp_libvips_include_dir)/glib-2.0',39          '<(sharp_libvips_lib_dir)/glib-2.0/include'40        ],41        'link_settings': {42          'library_dirs': [43            '<(sharp_libvips_lib_dir)'44          ],45          'libraries': [46            'libvips.lib'47          ],48        },49        'configurations': {50          'Release': {51            'msvs_settings': {52              'VCCLCompilerTool': {53                "AdditionalOptions": [54                  "/std:c++17"55                ],56                'ExceptionHandling': 1,57                'Optimization': 1,58                'WholeProgramOptimization': 'true'59              },60              'VCLibrarianTool': {61                'AdditionalOptions': [62                  '/LTCG:INCREMENTAL'63                ]64              },65              'VCLinkerTool': {66                'ImageHasSafeExceptionHandlers': 'false',67                'OptimizeReferences': 2,68                'EnableCOMDATFolding': 2,69                'LinkIncremental': 1,70                'AdditionalOptions': [71                  '/LTCG:INCREMENTAL'72                ]73              }74            },75            'msvs_disabled_warnings': [76              427577            ]78          }79        }80      }, {81        # Ignore this target for non-Windows82        'type': 'none'83      }]84    ]85  }, {86    'target_name': 'sharp-<(platform_and_arch)-<(sharp_version)',87    'defines': [88      'G_DISABLE_ASSERT',89      'G_DISABLE_CAST_CHECKS',90      'G_DISABLE_CHECKS',91      'NAPI_VERSION=9',92      'NODE_ADDON_API_DISABLE_DEPRECATED',93      'NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS'94    ],95    'dependencies': [96      '<!(node -p "require(\'node-addon-api\').gyp")',97      'libvips-cpp-<(vips_version)'98    ],99    'variables': {100      'conditions': [101        ['OS != "win"', {102          'pkg_config_path': '<!(node -p "require(\'../dist/libvips.cjs\').pkgConfigPath()")',103          'use_global_libvips': '<!(node -p "Boolean(require(\'../dist/libvips.cjs\').useGlobalLibvips()).toString()")'104        }, {105          'pkg_config_path': '',106          'use_global_libvips': ''107        }]108      ]109    },110    'sources': [111      'common.cc',112      'metadata.cc',113      'stats.cc',114      'operations.cc',115      'pipeline.cc',116      'utilities.cc',117      'sharp.cc'118    ],119    'include_dirs': [120      '<!(node -p "require(\'node-addon-api\').include_dir")',121    ],122    'conditions': [123      ['use_global_libvips == "true"', {124        # Use pkg-config for include and lib125        'include_dirs': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --cflags-only-I vips-cpp vips glib-2.0 | sed s/-I//g)'],126        'libraries': ['<!@(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --libs vips-cpp)'],127        'defines': [128          'SHARP_USE_GLOBAL_LIBVIPS'129        ],130        'conditions': [131          ['OS == "linux"', {132            'defines': [133              # Inspect libvips-cpp.so to determine which C++11 ABI version was used and set _GLIBCXX_USE_CXX11_ABI accordingly. This is quite horrible.134              '_GLIBCXX_USE_CXX11_ABI=<!(if readelf -Ws "$(PKG_CONFIG_PATH="<(pkg_config_path)" pkg-config --variable libdir vips-cpp)/libvips-cpp.so" | c++filt | grep -qF __cxx11;then echo "1";else echo "0";fi)'135            ]136          }]137        ]138      }, {139        # Use pre-built libvips stored locally within node_modules140        'include_dirs': [141          '<(sharp_libvips_include_dir)',142          '<(sharp_libvips_include_dir)/glib-2.0',143          '<(sharp_libvips_lib_dir)/glib-2.0/include'144        ],145        'library_dirs': [146          '<(sharp_libvips_lib_dir)'147        ],148        'conditions': [149          ['OS == "win"', {150            'defines': [151              '_ALLOW_KEYWORD_MACROS',152              '_FILE_OFFSET_BITS=64',153              '_HAS_EXCEPTIONS=1'154            ],155            'link_settings': {156              'libraries': [157                'libvips.lib'158              ]159            }160          }],161          ['OS == "mac"', {162            'link_settings': {163              'libraries': [164                'libvips-cpp.<(vips_version).dylib'165              ]166            },167            'xcode_settings': {168              'OTHER_LDFLAGS': [169                '-Wl,-s',170                '-Wl,-dead_strip',171                # Ensure runtime linking is relative to sharp.node172                '-Wl,-rpath,\'@loader_path/../../sharp-libvips-<(platform_and_arch)/lib\'',173                '-Wl,-rpath,\'@loader_path/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',174                '-Wl,-rpath,\'@loader_path/../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',175                '-Wl,-rpath,\'@loader_path/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',176                '-Wl,-rpath,\'@loader_path/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',177                '-Wl,-rpath,\'@loader_path/../../../../../@img-sharp-libvips-<(platform_and_arch)-npm-<(sharp_libvips_version)-<(sharp_libvips_yarn_locator)/node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\''178              ]179            }180          }],181          ['OS == "linux"', {182            'defines': [183              '_GLIBCXX_USE_CXX11_ABI=1'184            ],185            'cflags_cc': [186              '<!(node -p "require(\'detect-libc\').isNonGlibcLinuxSync() ? \'\' : \'-flto=auto\'")'187            ],188            'link_settings': {189              'libraries': [190                '-l:libvips-cpp.so.<(vips_version)'191              ],192              'ldflags': [193                '-lstdc++fs',194                '-Wl,-s',195                '-Wl,--disable-new-dtags',196                '-Wl,-z,nodelete',197                '-Wl,-Bsymbolic-functions',198                '-Wl,-rpath=\'$$ORIGIN/../../sharp-libvips-<(platform_and_arch)/lib\'',199                '-Wl,-rpath=\'$$ORIGIN/../../../sharp-libvips-<(platform_and_arch)/<(sharp_libvips_version)/lib\'',200                '-Wl,-rpath=\'$$ORIGIN/../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',201                '-Wl,-rpath=\'$$ORIGIN/../../../node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\'',202                '-Wl,-rpath,\'$$ORIGIN/../../../../../@img-sharp-libvips-<(platform_and_arch)-npm-<(sharp_libvips_version)-<(sharp_libvips_yarn_locator)/node_modules/@img/sharp-libvips-<(platform_and_arch)/lib\''203              ]204            }205          }],206          ['OS == "emscripten"', {207            'product_extension': 'node.js',208            'cflags_cc': [209              '-fwasm-exceptions'210            ],211            'link_settings': {212              'ldflags': [213                '-fwasm-exceptions',214                '--pre-js=<!(node -p "require.resolve(\'./emscripten/pre.js\')")',215                '-Oz',216                '-sALLOW_MEMORY_GROWTH',217                '-sENVIRONMENT=node',218                '-sNODERAWFS',219                '-sWASM_ASYNC_COMPILATION=0'220              ],221              'libraries': [222                '<!@(PKG_CONFIG_PATH="<!(node -p "require(\'@img/sharp-libvips-dev-wasm32/lib\')")/pkgconfig" pkg-config --static --libs vips-cpp)'223              ],224            }225          }]226        ]227      }]228    ],229    'cflags_cc': [230      '-std=c++17',231      '-fexceptions',232      '-Wall',233      '-Os'234    ],235    'xcode_settings': {236      'CLANG_CXX_LANGUAGE_STANDARD': 'c++17',237      'MACOSX_DEPLOYMENT_TARGET': '10.15',238      'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',239      'GCC_ENABLE_CPP_RTTI': 'YES',240      'OTHER_CPLUSPLUSFLAGS': [241        '-fexceptions',242        '-Wall',243        '-Oz'244      ]245    },246    'configurations': {247      'Release': {248        'conditions': [249          ['target_arch == "arm"', {250            'cflags_cc': [251              '-Wno-psabi'252            ]253          }],254          ['OS == "win"', {255            'msvs_settings': {256              'VCCLCompilerTool': {257                "AdditionalOptions": [258                  "/std:c++17"259                ],260                'ExceptionHandling': 1,261                'Optimization': 1,262                'WholeProgramOptimization': 'true'263              },264              'VCLibrarianTool': {265                'AdditionalOptions': [266                  '/LTCG:INCREMENTAL'267                ]268              },269              'VCLinkerTool': {270                'ImageHasSafeExceptionHandlers': 'false',271                'OptimizeReferences': 2,272                'EnableCOMDATFolding': 2,273                'LinkIncremental': 1,274                'AdditionalOptions': [275                  '/LTCG:INCREMENTAL'276                ]277              }278            },279            'msvs_disabled_warnings': [280              4275281            ]282          }]283        ]284      }285    },286  }, {287    'target_name': 'copy-dll',288    'type': 'none',289    'dependencies': [290      'sharp-<(platform_and_arch)-<(sharp_version)'291    ],292    'conditions': [293      ['OS == "win"', {294        'copies': [{295          'destination': 'build/Release',296          'files': [297            '<(sharp_libvips_lib_dir)/libvips-42.dll'298          ]299        }]300      }]301    ]302  }]303}304 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai