aboutsummaryrefslogtreecommitdiff
path: root/src/core/deviceinterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/deviceinterface.h')
-rw-r--r--src/core/deviceinterface.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/deviceinterface.h b/src/core/deviceinterface.h
index e15994e..c809cf4 100644
--- a/src/core/deviceinterface.h
+++ b/src/core/deviceinterface.h
@@ -313,8 +313,9 @@ class DeviceProgram
* \param native \c std::string returns native binary if not NULL
* \return true if the binary is indeed mixed
*/
- virtual bool ExtractMixedBinary(std::string *binary_str,
- std::string *bitcode, std::string *native)
+ virtual bool ExtractMixedBinary(const std::string *binary_str,
+ std::string *bitcode,
+ std::string *native)
{ return false; }
};
@@ -332,7 +333,7 @@ class DeviceKernel
* \return Maximum work-group size of the kernel based on device-specific
* data such as memory usage, register pressure, etc)
*/
- virtual size_t workGroupSize() = 0;
+ virtual size_t workGroupSize() const = 0;
/**
* \brief Local memory used by the kernel