Skip to content

Commit

Permalink
[ci] fix macos-14 test under make omp
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 14, 2024
1 parent 739dbbe commit 58aa18c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mmc_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,7 @@ void mcx_validatecfg(mcconfig* cfg) {

#ifndef MMC_USE_SSE

if (cfg->gpuid < 0) {
if (cfg->gpuid > MAX_DEVICE) {
cfg->method = rtPlucker;
}

Expand Down
6 changes: 3 additions & 3 deletions src/mmc_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@ typedef struct MMC_config {
char autopilot; /**<1 optimal setting for dedicated card, 2, for non dedicated card*/
float normalizer; /**<normalization factor*/
unsigned int nbuffer; /**<2^nbuffer is the number of buffers for accummulation*/
unsigned int gpuid;
int compute;
unsigned int gpuid; /**<positive integer denotes the 1st/2nd/... OpenCL or CUDA devices, 0xFFFFFFFF for CPU only*/
int compute; /**<0: sse, 1: opencl or 2: cuda*/
char isdumpjson; /**<1 to save json */
int zipid; /**<data zip method "zlib","gzip","base64","lzip","lzma","lz4","lz4hc"*/
unsigned int savedetflag; /**<a flag to control the output fields of detected photon data*/
uint mediabyte;
uint mediabyte; /**<not used*/
char* shapedata; /**<a pointer points to a string defining the JSON-formatted shape data*/
FLOAT3* node; /**<node x/y/z data loaded from json input*/
unsigned int nodenum; /**<total number of nodes*/
Expand Down

0 comments on commit 58aa18c

Please sign in to comment.