Skip to content

Commit

Permalink
OpenCL: Disable kernel binary caching for macOS - some bug of theirs
Browse files Browse the repository at this point in the history
make it problematic. Closes #3434.
  • Loading branch information
magnumripper committed Oct 17, 2018
1 parent 6d1d619 commit 756f138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/opencl_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -2045,8 +2045,8 @@ void opencl_build_kernel(char *kernel_filename, int sequential_id, char *opts,
char hash_str[33];
uint64_t startTime, runtime;

if ((!gpu_amd(device_info[sequential_id]) &&
!platform_apple(platform_id)) ||
if (!gpu_amd(device_info[sequential_id]) ||
platform_apple(platform_id) ||
stat(path_expand(kernel_filename), &source_stat))
opencl_build_kernel_opt(kernel_filename, sequential_id, opts);
else {
Expand Down

0 comments on commit 756f138

Please sign in to comment.