From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QMocAcEmYGHWAAEAgWs5BA (envelope-from ) for ; Fri, 08 Oct 2021 13:08:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SJJgOMAmYGFvWgAAB5/wlQ (envelope-from ) for ; Fri, 08 Oct 2021 11:08:48 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B6C2C285D0 for ; Fri, 8 Oct 2021 13:08:48 +0200 (CEST) Received: from localhost ([::1]:52332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYnk6-0004rs-TT for larch@yhetil.org; Fri, 08 Oct 2021 07:08:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYnjP-0004aB-Ti for guix-devel@gnu.org; Fri, 08 Oct 2021 07:08:05 -0400 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]:35415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYnjN-000199-CM for guix-devel@gnu.org; Fri, 08 Oct 2021 07:08:03 -0400 Received: by mail-io1-xd2d.google.com with SMTP id b78so10265820iof.2 for ; Fri, 08 Oct 2021 04:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=AYku7i86K2HM/2t4bnRqfmA8icMfVSR6Ns+p2btEcNA=; b=UTjp2G4USZOqzo3ZQAWOlOEc48JillFw/pdKIiEgLipv+X7qoHfCS+RvN+0/NqUP1G Ijl41qtRb7TqOwiw1+gYB4GBvZ1mFq+AU6Rz/vRyu+Fx/j1+F7uDsVZ/4EktfISKsLkd DUrfvmf9iHtaxOvgzOArF+2j0bhgJI8a8zcJbSobwkCxwXEGA2t6/FlYp5ir15Z/0QOm 6uOQH4tuOXkb7d3EJby2S/hGAn9XMJhdsNdhVZpVgQjeiRY/rrBrswrFVgoNIDN1SA/y QDQHVen1DNDmWMyHQucFBqUIK1i+vIehCnL6dCfTTnfeOeLLyOKRbbPgXvuO4ANlI12N gezg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AYku7i86K2HM/2t4bnRqfmA8icMfVSR6Ns+p2btEcNA=; b=PwvUxYyYcoveCLbZq24vNjXPN1i/D5acEP0wp+UHarAf64nAOF2xgoKbUqwDf/iT5b b8Vs/ziWnklnnfeG1ReT9z9Sv/HFP24pfC/9fo85MDRoux0SLLQOqoWVdol+7tIo53LG BsgEtaLoYFxEsyyrC39NIef03VmFAt06tAqZ7l+hYE/WzxTMNQfVbgRJ7Z1DkUgaa4T8 otPg3W603QbbYbKI16ICoFCG8bqwucX2auOpjTYW2d5dAXCOgF7Nosikx8MNlIMBF0Y2 ZbcqbeOFKL18j1UF889NsOXAisyqJ87erLVyLgddPSG2B0qGFH8SmaZiw1Tbsju01fB7 wc1w== X-Gm-Message-State: AOAM532XKRrImk4ggN+lzNPKBA+LZwh/UPPcxetsDGosIz9MtKOCQc2G LFbRruC2a8ZQ70dha8s0aQEKnzbU7qz+/OIAhGF29B4AY2aV0tS1vVY= X-Google-Smtp-Source: ABdhPJxg08WrvFDg768peCEKvGUT9bpmZpBfvowljP7jBFMbpaIb+C6/Da2NKs85zSLVFFtn3r9eB5oGbbYB7a/R0o8= X-Received: by 2002:a02:b393:: with SMTP id p19mr7366381jan.112.1633691279365; Fri, 08 Oct 2021 04:07:59 -0700 (PDT) MIME-Version: 1.0 From: Greg Hogan Date: Fri, 8 Oct 2021 07:07:46 -0400 Message-ID: Subject: Test parallelism with CMake To: guix-devel@gnu.org Content-Type: multipart/alternative; boundary="000000000000612b8b05cdd56495" Received-SPF: none client-ip=2607:f8b0:4864:20::d2d; envelope-from=code@greghogan.com; helo=mail-io1-xd2d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633691328; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AYku7i86K2HM/2t4bnRqfmA8icMfVSR6Ns+p2btEcNA=; b=uYotsAU5OrQCQCSPqAq5kUekgCm+5d7MNPSDzsenQd1vQTO3veWvh3P1R8RIg/jbrhxPW6 qKnaUGy1dvSuotgWEpLsybd6iVMmBUl2nNMKiG6qL8pXkDazyXYVyC8zmy41mpEhoYPQd/ mHpffDj/70QEyuDnHBrFC9LqrsWLMd57bmjmbZ+X+1trhLjRmBG6E+pI+kF/Z7K89SvvG+ VBmg7uibm2rmsR0KfaY42cpU1f/qSssbLdnTqJibHRwgIMplPnbrKs1wUHf/nGNfLG989f P6Pufu9ldsNDKnurioSTShY+OSo/13jbIDFOfqk6/SGeUu4sQd/U5ZOWwASnXQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633691328; a=rsa-sha256; cv=none; b=JaYGhj6Z1pmkzBnNIX9XW7hjn/4/vAVe5/umid517WT1T87Y7ZcPboRD+Yq9rbvzYZQl0+ usnTu9drvngGG9tROhlWEbB6dEnmjlJ3D4NCZMZkg7HfF7h7jCV6PwBmbF0kz8QaLWt5uY LVc857UAWGNdwMu7xSgxTQq3aFwH1wHquCiZfFoFCyzoPZP8pIYaXRoXv+5BnWW0ickcV9 zeD/euxUc/KNLngGvvgs3KxkxrU6yA6ILLemYsmMvdmvj7raMcZ/uQYlh1+iBaxsYVLOg8 0X9PIN5rYONBVS+L2caebtQM6MAbhKOcaK3P5840iOh+liwuwoshxNkxNaNo7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=UTjp2G4U; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=UTjp2G4U; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: B6C2C285D0 X-Spam-Score: -2.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: mgEmLHxuIDn5 --000000000000612b8b05cdd56495 Content-Type: text/plain; charset="UTF-8" Guix, As I read the source, cmake-build-system should by default both build and check with parallelism enabled. When I locally build a package only the build phase runs with parallelism and tests are being run in serial. When I run a manual build (stopping an in-process build run with '-K', then removing all files under the build directory, then copying and running the commands from the stopped build) I do not see a parallel build, nor do I see any parallelism passed by command or environment arguments (no '-j' or CMAKE_BUILD_PARALLEL_LEVEL). If this has been previously discussed please direct me to the earlier discussion. Often my builds are fast (running in parallel) but tests are slow (running in serial) and I am puzzled why any of this works the way it does. Greg --000000000000612b8b05cdd56495 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Guix,

As I read the source, cmake= -build-system should by default both build and check with parallelism enabl= ed. When I locally build a package only the build phase runs with paralleli= sm=C2=A0and tests are being run in serial.

When I run a = manual build (stopping an in-process build run with '-K', then remo= ving all files under the build directory, then copying and running the comm= ands from the stopped build) I do not see a parallel build, nor do I see an= y parallelism passed by command or environment arguments (no '-j' o= r CMAKE_BUILD_PARALLEL_LEVEL).

If this has be= en previously discussed please direct me to the earlier discussion. Often m= y builds are fast (running in parallel) but tests are slow (running in seri= al) and I am puzzled why any of this works the way it does.

<= /div>
Greg
--000000000000612b8b05cdd56495--