Skip to content

Commit

Permalink
[bug] remove errors and warnings on Intel and AMD GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 9, 2024
1 parent efc4101 commit 0dce38e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mmc_core.cl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ inline __device__ __host__ float4 convert_float4_rte(float4 v) {
#define NULL 0
#endif

#pragma OPENCL EXTENSION cl_khr_fp64 : enable

#ifdef MCX_USE_NATIVE
#define MCX_MATHFUN(fun) native_##fun
Expand Down Expand Up @@ -577,12 +576,12 @@ __device__ void savedebugdata(ray* r, uint id, __global MCXReporter* reporter, _

if (pos < GPU_PARAM(gcfg, maxjumpdebug)) {
pos *= MCX_DEBUG_REC_LEN;
((uint*)gdebugdata)[pos++] = id;
((__global uint*)gdebugdata)[pos++] = id;
gdebugdata[pos++] = r->p0.x;
gdebugdata[pos++] = r->p0.y;
gdebugdata[pos++] = r->p0.z;
gdebugdata[pos++] = r->weight;
((uint*)gdebugdata)[pos++] = r->eid;
((__global uint*)gdebugdata)[pos++] = r->eid;
}
}

Expand Down

0 comments on commit 0dce38e

Please sign in to comment.