[GRASS-git] [OSGeo/grass] e87f78: lib/gis: Add a helper function to determine the nu...

Chung-Yuan Liang noreply at github.com
Mon Aug 5 15:56:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: e87f788b817f4f99146ce1e613318c55f7fef6b3
      https://github.com/OSGeo/grass/commit/e87f788b817f4f99146ce1e613318c55f7fef6b3
  Author: Chung-Yuan Liang <77927944+cyliang368 at users.noreply.github.com>
  Date:   2024-08-05 (Mon, 05 Aug 2024)

  Changed paths:
    M include/grass/defs/gis.h
    M lib/gis/Makefile
    A lib/gis/omp_threads.c

  Log Message:
  -----------
  lib/gis: Add a helper function to determine the number of threads for OpenMP (#3929)

* determine the number of threads for OpenMP in opt parser

* add OpenMP library paths

* solve segfault when nprocs option is not specified in the command

* only change nprocs for C module

* update the description of the function, which does not return any value

* add helper function, left parser unchanged

* return threads rather than change the answer of nprocs

* modify code based on review comments

* remove threads > logic cores check, update based on review comments



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list