Piercarlo Giannattasio on Mon, 30 Jun 2025 12:14:20 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Forprime and posix multithreading
|
- To: "pari-users@pari.math.u-bordeaux.fr" <pari-users@pari.math.u-bordeaux.fr>
- Subject: Forprime and posix multithreading
- From: Piercarlo Giannattasio <piercarlo.giannattasio@gmail.com>
- Date: Mon, 30 Jun 2025 10:14:13 +0000
- Accept-language: it-IT, en-US
- Delivery-date: Mon, 30 Jun 2025 12:14:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751278456; x=1751883256; darn=pari.math.u-bordeaux.fr; h=mime-version:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/pUhT0qrEMj0huTY5rafjaC3yLT+gzUX3W8CIe4nWMk=; b=Xu9FgKq2LG02nvBprlPweMrwy+Lu9hI4Y4iPKp1DQ65gZiiI58egBSJX7c/sJJU8/k r0CmFtFK6fOBV1lwlY3hUOGiOtSc6rqDseuGLlR2EkKLud/2hUPhKyaHY2QebMQdLukP 2C5pcYSDdi4e1Qa2yMwABtLNNaac8aVr8IztdxbPTLSUIjkDo0VpIoI4jTa4+ZGlWrGs 7QryPsw1l2k/o8wtT/RMsZrNSUAE7qh/9f1Jdo+EyPE5ZhQ8iQHtOZbdlq3LTErtRkq/ khyjaKKpygCzQc/x968BMst8auKDhR0c3umVSD8Qh1IeU492xbzpd2I9TbaYdtwJAIxr i4/A==
- Thread-index: AQHb6aTL8uiy3pcMG0SNeyH+RT8iMA==
- Thread-topic: Forprime and posix multithreading
Good morning,
I'm trying to code a prime number generator in a specified range, using GP and C, and I need to
reduce processing times.
I'm trying to use forprime and posix multithreading, but when executing the code I'm exceeding the parisizemax. I've tried with 1-15 threads, assigning 16GB of memory only to
PARI, but I still get the same error: sometimes it only calculates the first iteration of forprime_next...
Also, is there any technical documentation for the C implementation, besides the one I'm studying (User Guide, Tutorial, Introduction to gp2c, Introduction to Parallel GP) ?
Piercarlo