Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[ESIMD] Remove -vc-codegen option for ESIMD tests #120

Merged
merged 1 commit into from
Feb 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SYCL/ESIMD/BitonicSortK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/BitonicSortKv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/PrefixSum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out 20
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 20
// RUN: %GPU_RUN_PLACEHOLDER %t.out 20

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/Prefix_Local_sum1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out 20
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 20
// RUN: %GPU_RUN_PLACEHOLDER %t.out 20

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/Prefix_Local_sum2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out 20
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 20
// RUN: %GPU_RUN_PLACEHOLDER %t.out 20

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/Prefix_Local_sum3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/Stencil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/accessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl -D_CRT_SECURE_NO_WARNINGS=1 %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

// This test checks that accessor-based memory accesses work correctly in ESIMD.

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/accessor_gather_scatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
//
// The test checks functionality of the gather/scatter accessor-based ESIMD
// intrinsics.
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/accessor_load_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
//
// The test checks functionality of the scalar load/store accessor-based ESIMD
// intrinsics.
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/dp4a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// TODO enable on Windows
// REQUIRES: linux && gpu
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// TODO : Enable test for new GPU device
// XFAIL: *

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/histogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/histogram_256_slm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/histogram_256_slm_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// REQUIRES: linux && gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 16
// RUN: %GPU_RUN_PLACEHOLDER %t.out 16

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/histogram_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/histogram_raw_send.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/kmeans/kmeans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -I%S/.. -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out %S/points.big.json
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out %S/points.big.json
// RUN: %GPU_RUN_PLACEHOLDER %t.out %S/points.big.json
//

#include "kmeans.h"
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/linear/linear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -I%S/.. -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out %S/linear_in.bmp %S/linear_gold_hw.bmp
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out %S/linear_in.bmp %S/linear_gold_hw.bmp
// RUN: %GPU_RUN_PLACEHOLDER %t.out %S/linear_in.bmp %S/linear_gold_hw.bmp

#include "bitmap_helpers.h"
#include "esimd_test_utils.hpp"
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/mandelbrot/mandelbrot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -I%S/.. -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out %T/output.ppm %S/golden_hw.ppm
// RUN: %GPU_RUN_PLACEHOLDER %t.out %T/output.ppm %S/golden_hw.ppm

#include "esimd_test_utils.hpp"
#include <CL/sycl.hpp>
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/mandelbrot/mandelbrot_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// REQUIRES: linux && gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -I%S/.. -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out %T/output.ppm %S/golden_hw.ppm 512 -2.09798 -1.19798 0.004 4.0
// RUN: %GPU_RUN_PLACEHOLDER %t.out %T/output.ppm %S/golden_hw.ppm 512 -2.09798 -1.19798 0.004 4.0

#include "esimd_test_utils.hpp"
#include <CL/sycl.hpp>
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/matrix_transpose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/matrix_transpose_glb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/matrix_transpose_usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/private_memory/pm_access_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl -I%S/.. %S/Inputs/pm_common.cpp -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 1
// RUN: %GPU_RUN_PLACEHOLDER %t.out 1
2 changes: 1 addition & 1 deletion SYCL/ESIMD/private_memory/pm_access_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl -I%S/.. %S/Inputs/pm_common.cpp -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 2
// RUN: %GPU_RUN_PLACEHOLDER %t.out 2
2 changes: 1 addition & 1 deletion SYCL/ESIMD/private_memory/pm_access_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl -I%S/.. %S/Inputs/pm_common.cpp -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out 3
// RUN: %GPU_RUN_PLACEHOLDER %t.out 3
2 changes: 1 addition & 1 deletion SYCL/ESIMD/reduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/regression/big_const_initializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl -I%S/.. %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

// This test checks that ESIMD program with big constant initializer list can
// compile and run correctly.
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/regression/unused_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl -I%S/.. %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

// This test checks that ESIMD JIT compilation does not crash on unused
// block_load invocation.
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/slm_barrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/slm_split_barrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
// REQUIRES: gpu
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// UNSUPPORTED: cuda

#include "esimd_test_utils.hpp"
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/spec_const_redefine_esimd.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// TODO enable on Windows
// REQUIRES: linux && gpu
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: env SYCL_PI_TRACE=2 %ESIMD_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER
// RUN: env SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER
// UNSUPPORTED: cuda

//==----------- spec_const_redefine_esimd.cpp ------------------------------==//
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/stencil2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/test_id_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

// This test checks that multi-dimensional sycl::item can be used in ESIMD
// kernels.
Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/vadd_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/vadd_2d_acc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
// REQUIRES: gpu
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

// UNSUPPORTED: cuda

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/vadd_raw_send.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// REQUIRES: gpu
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion SYCL/ESIMD/vadd_usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// UNSUPPORTED: cuda
// RUN: %clangxx-esimd -fsycl %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ESIMD_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out

#include "esimd_test_utils.hpp"

Expand Down
3 changes: 0 additions & 3 deletions SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@
config.sycl_be +
"' supported values are opencl, cuda, level_zero")

esimd_run_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu SYCL_PROGRAM_COMPILE_OPTIONS=-vc-codegen".format(SYCL_PLUGIN=config.sycl_be)
config.substitutions.append( ('%ESIMD_RUN_PLACEHOLDER', esimd_run_substitute) )

config.substitutions.append( ('%clangxx-esimd', config.dpcpp_compiler +
' ' + '-fsycl-explicit-simd' + ' ' +
config.cxx_flags ) )
Expand Down