Merge pull request #101 from UoB-HPC/revert-100-issue-98
Revert "Add check for FP64 support"
This commit is contained in:
commit
d3269ece59
@ -13,7 +13,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Support for CUDA Managed Memory and Page Fault memory.
|
- Support for CUDA Managed Memory and Page Fault memory.
|
||||||
- Added nstream kernel from PRK with associate command line option.
|
- Added nstream kernel from PRK with associate command line option.
|
||||||
- CMake build system added for all models.
|
- CMake build system added for all models.
|
||||||
- SYCL device check for FP64 support.
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Default branch renamed from `master` to `main`.
|
- Default branch renamed from `master` to `main`.
|
||||||
|
|||||||
@ -28,14 +28,6 @@ SYCLStream<T>::SYCLStream(const int ARRAY_SIZE, const int device_index)
|
|||||||
throw std::runtime_error("Invalid device index");
|
throw std::runtime_error("Invalid device index");
|
||||||
device dev = devices[device_index];
|
device dev = devices[device_index];
|
||||||
|
|
||||||
// Check device can support FP64 if needed
|
|
||||||
if (sizeof(T) == sizeof(double))
|
|
||||||
{
|
|
||||||
if (dev.get_info<info::device::double_fp_config>().size() == 0) {
|
|
||||||
throw std::runtime_error("Device does not support double precision, please use --float");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Determine sensible dot kernel NDRange configuration
|
// Determine sensible dot kernel NDRange configuration
|
||||||
if (dev.is_cpu())
|
if (dev.is_cpu())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user