Skip to content

Commit

Permalink
Merge pull request #832 from DrTimothyAldenDavis/dev2
Browse files Browse the repository at this point in the history
sync dev2 and paru_dev2
  • Loading branch information
DrTimothyAldenDavis authored Jun 7, 2024
2 parents aaa5e6b + 5411c96 commit 3dccb5d
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 26 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/root-cmakelists.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ jobs:
cuda: [without]
link: [both]
cc: [cl]
cxx: [cl]
include:
- openmp: without
openmp-cmake-flags: "-DSUITESPARSE_USE_OPENMP=OFF"
Expand All @@ -315,6 +316,7 @@ jobs:
-DCMAKE_CUDA_COMPILER_LAUNCHER="ccache"
link: both
cc: cl
cxx: cl
- openmp: with
cuda: with
cuda-cmake-flags:
Expand All @@ -325,10 +327,17 @@ jobs:
-DBUILD_SHARED_LIBS=OFF
-DBUILD_STATIC_LIBS=ON
cc: cl
cxx: cl
- openmp: with
cuda: without
link: both
cc: clang-cl
cxx: clang-cl
- openmp: with
cuda: without
link: both
cc: clang
cxx: clang++

env:
CHERE_INVOKING: 1
Expand Down Expand Up @@ -459,15 +468,15 @@ jobs:
# Suppress erroneous version check.
_extra_config+=(-DCMAKE_CUDA_FLAGS=-allow-unsupported-compiler)
fi
if [ ${{ matrix.cc }} = 'clang-cl' ]; then
# Move away (old) clang-cl that would be in PATH to make sure that
# we use the one that matches the MSVC runtime.
if [[ ${{ matrix.cc }} == clang* ]]; then
# Move away (old) clang/clang++ and clang-cl that would be in PATH
# to make sure that we use the one that matches the MSVC runtime.
mv C:/Program\ Files/LLVM C:/Program\ Files/LLVM_old
fi
mkdir -p ${GITHUB_WORKSPACE}/build && cd ${GITHUB_WORKSPACE}/build
cmake -G"Ninja Multi-Config" \
-DCMAKE_C_COMPILER=${{ matrix.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }} \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=".." \
-DCMAKE_PREFIX_PATH="C:/Miniconda/envs/test/Library;${GITHUB_WORKSPACE}/dependencies" \
Expand Down Expand Up @@ -532,7 +541,7 @@ jobs:
printf "::group::\033[0;32m==>\033[0m Configuring example\n"
cmake -G"Ninja Multi-Config" \
-DCMAKE_C_COMPILER=${{ matrix.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }} \
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/lib/cmake;C:/Miniconda/envs/test/Library;${GITHUB_WORKSPACE}/dependencies" \
-DBLA_VENDOR="All" \
${{ matrix.openmp-cmake-flags }} \
Expand Down Expand Up @@ -570,7 +579,7 @@ jobs:
cd build
cmake -G"Ninja Multi-Config" \
-DCMAKE_C_COMPILER=${{ matrix.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }} \
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/lib/cmake;C:/Miniconda/envs/test/Library;${GITHUB_WORKSPACE}/dependencies" \
..
cmake --build . --config Release
Expand Down
4 changes: 2 additions & 2 deletions CHOLMOD/GPU/cholmod_gpu_kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#ifndef CHOLMODGPUKERNELS_H
#define CHOLMODGPUKERNELS_H

#include "SuiteSparse_config.h"

/* make it easy for C++ programs to include CHOLMOD */
#ifdef __cplusplus
extern "C" {
#endif

#include "SuiteSparse_config.h"

int createMapOnDevice ( int64_t *d_Map, int64_t *d_Ls, int64_t psi, int64_t nsrow );

int createRelativeMapOnDevice ( int64_t *d_Map, int64_t *d_Ls,
Expand Down
2 changes: 1 addition & 1 deletion GraphBLAS/Source/omp/include/GB_atomics.h
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
#define GB_ATOMIC_COMPARE_EXCHANGE_32(target, expected, desired) \
( \
GB_PUN (int32_t, expected) == \
_InterlockedCompareExchange ((int32_t volatile *) (target), \
_InterlockedCompareExchange ((long volatile *) (target), \
GB_PUN (int32_t, desired), GB_PUN (int32_t, expected)) \
)

Expand Down
8 changes: 4 additions & 4 deletions ParU/Config/ParU.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -620,14 +620,14 @@ ParU_Info ParU_FreeControl

// The following definitions are available in both C and C++:

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stdbool.h>
#include <math.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct ParU_C_Symbolic_struct *ParU_C_Symbolic ;
typedef struct ParU_C_Numeric_struct *ParU_C_Numeric ;
typedef struct ParU_C_Control_struct *ParU_C_Control ;
Expand Down
8 changes: 4 additions & 4 deletions ParU/Include/ParU.h
Original file line number Diff line number Diff line change
Expand Up @@ -620,14 +620,14 @@ ParU_Info ParU_FreeControl

// The following definitions are available in both C and C++:

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stdbool.h>
#include <math.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct ParU_C_Symbolic_struct *ParU_C_Symbolic ;
typedef struct ParU_C_Numeric_struct *ParU_C_Numeric ;
typedef struct ParU_C_Control_struct *ParU_C_Control ;
Expand Down
3 changes: 0 additions & 3 deletions ParU/Tcov/paru_c_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@
}

#include "paru_cov.hpp"
extern "C"
{
#include "ParU.h"
}

int main(int argc, char **argv)
{
Expand Down
11 changes: 5 additions & 6 deletions SPQR/Include/SuiteSparseQR.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
#include <cublas_v2.h>
#endif
#define SUITESPARSE_GPU_EXTERN_ON
extern "C"
{
#include "SuiteSparse_config.h"
#include "cholmod.h"
#include "SuiteSparseQR_definitions.h"
}

#include "SuiteSparse_config.h"
#include "cholmod.h"
#include "SuiteSparseQR_definitions.h"

#undef SUITESPARSE_GPU_EXTERN_ON

#include <complex>
Expand Down

0 comments on commit 3dccb5d

Please sign in to comment.