diff --git a/build/.outer-loop-build.yml b/build/.outer-loop-build.yml deleted file mode 100644 index 28034b32fb..0000000000 --- a/build/.outer-loop-build.yml +++ /dev/null @@ -1,111 +0,0 @@ -################################################################################ -# ML.NET's outer loop build that will run all tests -################################################################################ - -# no PR builds -pr: none - -# no CI builds -trigger: none - -# scheduled trigger, runs at UTC 8:00 every day which is midnight of GMT-8 -schedules: -- cron: "0 8 * * *" - displayName: outer loop build at midnight - branches: - include: - - main - - feature/* - - release/* - always: true - - -resources: - containers: - - container: CentosContainer - image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8-mlnet - - - container: UbuntuContainer - image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet - -jobs: -- template: /build/ci/job-template.yml - parameters: - name: Centos_x64_Net60 - buildScript: ./build.sh - container: CentosContainer - customMatrixes: - Debug_Build: - _configuration: Debug - _config_short: DI - _includeBenchmarkData: false - Release_Build: - _configuration: Release - _config_short: RI - _includeBenchmarkData: true - pool: - vmImage: ubuntu-18.04 - -- template: /build/ci/job-template.yml - parameters: - name: Ubuntu_x64_Net60 - buildScript: ./build.sh - container: UbuntuContainer - pool: - vmImage: ubuntu-18.04 - -- template: /build/ci/job-template.yml - parameters: - name: MacOS_x64_Net60 - buildScript: ./build.sh - pool: - vmImage: macOS-10.15 - -- template: /build/ci/job-template.yml - parameters: - name: Windows_x64_Net60 - buildScript: build.cmd - customMatrixes: - Debug_Build: - _configuration: Debug - _config_short: DI - _includeBenchmarkData: false - Release_Build: - _configuration: Release - _config_short: RI - _includeBenchmarkData: true - pool: - vmImage: windows-2019 - -- template: /build/ci/job-template.yml - parameters: - name: Windows_x64_Net60 - buildScript: build.cmd - pool: - vmImage: windows-2019 - -- template: /build/ci/job-template.yml - parameters: - name: Windows_x64_NetFx48 - buildScript: build.cmd - customMatrixes: - Debug_Build: - _configuration: Debug - _config_short: DFX - _includeBenchmarkData: false - _targetFramework: net48 - Release_Build: - _configuration: Release - _config_short: RFX - _includeBenchmarkData: false - _targetFramework: net48 - pool: - vmImage: windows-2019 - -- template: /build/ci/job-template.yml - parameters: - name: Windows_x86_Net60 - architecture: x86 - buildScript: build.cmd - pool: - vmImage: windows-2019 diff --git a/build/libomp.rb b/build/libomp.rb deleted file mode 100644 index cb944bf4f5..0000000000 --- a/build/libomp.rb +++ /dev/null @@ -1,64 +0,0 @@ -# typed: false -# frozen_string_literal: true - -class Libomp < Formula - desc "LLVM's OpenMP runtime library" - homepage "https://openmp.llvm.org/" - url "https://releases.llvm.org/7.0.0/openmp-7.0.0.src.tar.xz" - sha256 "30662b632f5556c59ee9215c1309f61de50b3ea8e89dcc28ba9a9494bba238ff" - - bottle do - sha256 cellar: :any, mojave: "c8788028105e9ec32e29bcdba8c7b550c2afd96b3f0a7bd0d6b6136a8729174a" - sha256 cellar: :any, high_sierra: "046f659ad8a2cc336049a1e7f7be0dac2f2e28ce322409f10396f9582b94b660" - sha256 cellar: :any, sierra: "ba1b9a78326c671fb864a95d93f2fcf47f3af2ef8f12f6c7ee54a7c0cf7802b4" - sha256 cellar: :any, el_capitan: "0ea5b6ae3e9e0b32a2b49a7430fb0f653430107164089b067a7b0039e91ce527" - end - - depends_on "cmake" => :build - - def install - system "cmake", ".", "-DCMAKE_POLICY_VERSION_MINIMUM=3.5", *std_cmake_args - system "make", "install" - system "cmake", ".", "-DLIBOMP_ENABLE_SHARED=OFF", "-DCMAKE_POLICY_VERSION_MINIMUM=3.5", *std_cmake_args - system "make", "install" - end - - def caveats - <<~EOS - On Apple Clang, you need to add several options to use OpenMP's front end - instead of the standard driver option. This usually looks like - -Xpreprocessor -fopenmp -lomp - - You might need to make sure the lib and include directories are discoverable - if #{HOMEBREW_PREFIX} is not searched: - - -L#{opt_lib} -I#{opt_include} - - For CMake, the following flags will cause the OpenMP::OpenMP_CXX target to - be set up correctly: - -DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp -I#{opt_include}" -DOpenMP_CXX_LIB_NAMES="omp" -DOpenMP_omp_LIBRARY=#{opt_lib}/libomp.dylib - EOS - end - - test do - (testpath/"test.cpp").write <<~EOS - #include - #include - int main (int argc, char** argv) { - std::array arr = {0,0}; - #pragma omp parallel num_threads(2) - { - size_t tid = omp_get_thread_num(); - arr.at(tid) = tid + 1; - } - if(arr.at(0) == 1 && arr.at(1) == 2) - return 0; - else - return 1; - } - EOS - system ENV.cxx, "-Werror", "-Xpreprocessor", "-fopenmp", "test.cpp", - "-L#{lib}", "-lomp", "-o", "test" - system "./test" - end -end