Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Compilation fails with LLVM5 #3

Open
anatol opened this issue Sep 13, 2017 · 1 comment
Open

Compilation fails with LLVM5 #3

anatol opened this issue Sep 13, 2017 · 1 comment

Comments

@anatol
Copy link

anatol commented Sep 13, 2017

I am trying to build beignet Arch package with LLVM5 and I see following compilation issues:

/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:271:45: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
GEN_VALIDATE_ARRAY_INDEX(float4, write_only image3d_t)
                                            ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:272:43: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
GEN_VALIDATE_ARRAY_INDEX(int4, write_only image3d_t)
                                          ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:273:45: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
GEN_VALIDATE_ARRAY_INDEX(float3, write_only image3d_t)
                                            ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:274:43: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
GEN_VALIDATE_ARRAY_INDEX(int3, write_only image3d_t)
                                          ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:541:17: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
DECL_IMAGE_TYPE(image3d_t, 4)
                ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:541:17: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:541:17: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:542:17: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
DECL_IMAGE_TYPE(image3d_t, 3)
                ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:542:17: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:542:17: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:709:35: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
DECL_IMAGE_INFO_COMMON(write_only image3d_t)
                                  ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:709:35: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:709:35: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:771:46: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
OVERLOADABLE int get_image_height(write_only image3d_t image)
                                             ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:775:45: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
OVERLOADABLE int get_image_depth(write_only image3d_t image)
                                            ^
/build/beignet/src/Beignet-1.3.1-Source/build/backend/src/libocl/src/ocl_image.cl:779:44: error: use of type '__write_only image3d_t' requires cl_khr_3d_image_writes extension to be enabled
OVERLOADABLE int4 get_image_dim(write_only image3d_t image)
@jbeich
Copy link
Contributor

jbeich commented Sep 21, 2017

4aa4acc and 269c230 probably fixed it. However, this repo is out of sync.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants