Skip to content

Commit 008c159

Browse files
committed
atpoints - drop old hack to avoid bug
1 parent a5042e3 commit 008c159

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

backends/cuda-gen/ceed-cuda-gen-operator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static int CeedOperatorApplyAddCore_Cuda_gen(CeedOperator op, CUstream stream, c
209209
int block[3] = {data->thread_1d, ((!is_tensor || data->dim == 1) ? 1 : data->thread_1d), -1};
210210

211211
if (is_tensor) {
212-
CeedCallBackend(BlockGridCalculate(num_elem, min_grid_size / cuda_data->device_prop.multiProcessorCount, is_at_points ? 1 : max_threads_per_block,
212+
CeedCallBackend(BlockGridCalculate(num_elem, min_grid_size / cuda_data->device_prop.multiProcessorCount, max_threads_per_block,
213213
cuda_data->device_prop.maxThreadsDim[2], cuda_data->device_prop.warpSize, block, &grid));
214214
} else {
215215
CeedInt elems_per_block = CeedIntMin(cuda_data->device_prop.maxThreadsDim[2], CeedIntMax(512 / data->thread_1d, 1));

backends/hip-gen/ceed-hip-gen-operator-build.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,6 @@ extern "C" int CeedOperatorBuildKernel_Hip_gen(CeedOperator op, bool *is_good_bu
15891589
// Compile
15901590
CeedCallBackend(CeedOperatorGetNumElements(op, &num_elem));
15911591
CeedCallBackend(BlockGridCalculate_Hip_gen(is_all_tensor ? max_dim : 1, num_elem, data->max_P_1d, is_all_tensor ? Q_1d : Q, block_sizes));
1592-
if (is_at_points) block_sizes[2] = 1;
15931592
{
15941593
bool is_compile_good = false;
15951594

@@ -2625,7 +2624,6 @@ extern "C" int CeedOperatorBuildKernelLinearAssembleQFunction_Hip_gen(CeedOperat
26252624
// Compile
26262625
CeedCallBackend(CeedOperatorGetNumElements(op, &num_elem));
26272626
CeedCallBackend(BlockGridCalculate_Hip_gen(max_dim, num_elem, data->max_P_1d, Q_1d, block_sizes));
2628-
block_sizes[2] = 1;
26292627
{
26302628
bool is_compile_good = false;
26312629

backends/hip-gen/ceed-hip-gen-operator.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ static int CeedOperatorApplyAddCore_Hip_gen(CeedOperator op, hipStream_t stream,
153153

154154
if (is_tensor) {
155155
CeedCallBackend(BlockGridCalculate_Hip_gen(data->dim, num_elem, data->max_P_1d, data->Q_1d, block_sizes));
156-
if (is_at_points) block_sizes[2] = 1;
157156
} else {
158157
CeedInt elems_per_block = 64 * data->thread_1d > 256 ? 256 / data->thread_1d : 64;
159158

0 commit comments

Comments
 (0)