Skip to content

Commit cc78027

Browse files
committed
Merge branch 'master' of github:dmed256/libceed [PR #62]
* 'master' of github:dmed256/libceed: [occa] Updated verbose flag
2 parents ae324fd + 2bd64c6 commit cc78027

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backends/occa/ceed-occa.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ static const char *occaCPU = "mode: 'Serial'";
2323
static const char *occaOMP = "mode: 'OpenMP'";
2424
static const char *occaGPU = "mode: 'CUDA', deviceID: %d";
2525
static const char *occaOCL = "mode: 'OpenCL', platformID: 0, deviceID: %d";
26-
extern void occaSetVerboseCompilation(const int value);
2726

2827
// *****************************************************************************
2928
// * CeedError_Occa
@@ -119,8 +118,10 @@ static int CeedInit_Occa(const char *resource, Ceed ceed) {
119118
data->ocl = ocl;
120119
data->libceed_dir = NULL;
121120
data->occa_cache_dir = NULL;
122-
if (data->debug)
123-
occaPropertiesSet(occaSettings(),"verbose-compilation",occaBool(true));
121+
if (data->debug) {
122+
occaPropertiesSet(occaSettings(), "device/verbose", occaBool(1));
123+
occaPropertiesSet(occaSettings(), "kernel/verbose", occaBool(1));
124+
}
124125
// Now that we can dbg, output resource and deviceID
125126
dbg("[CeedInit] resource: %s", resource);
126127
dbg("[CeedInit] deviceID: %d", deviceID);

0 commit comments

Comments
 (0)