Skip to content

Commit

Permalink
gpu: ocl: force compiler to assume all buffers are >4GB
Browse files Browse the repository at this point in the history
  • Loading branch information
envsp committed Jul 27, 2021
1 parent 6d71293 commit 379daaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gpu/compute/kernel_ctx.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2019-2020 Intel Corporation
* Copyright 2019-2021 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -120,6 +120,8 @@ class kernel_ctx_t {
void set_default_options() {
// By default fp32 division and sqrt are not IEEE-compliant
add_option("-cl-fp32-correctly-rounded-divide-sqrt");
// force compiler to assume all buffers are >4GB
add_option("-cl-intel-greater-than-4GB-buffer-required");
}

std::map<std::string, int64_t> int_var_map_;
Expand Down

0 comments on commit 379daaf

Please sign in to comment.